Intermediate work on sockets