Progress on sockets implementation