Migrating from zeromq to sockets