Working sockets example.