Redoing the sockets API.