Socket example