More work on sockets.