Example functional of sockets