Initial sockets infrastructure.