print and sockets