On 05.02.2014 17:36, Bradley Volen wrote: > Would I still use send recv or would I use recvmsg and sendmsg? using an AF_SP_RAW REP socket seems to be basically using plain xrep.c [1] if you look the implementation of recv [2] and send [3] of that socket I'd say you need recvmsg and sendmsg as you won't have any way to get the peer ids otherwise [1] src/protocols/reqrep/xreq.c [2] https://github.com/nanomsg/nanomsg/blob/master/src/protocols/reqrep/xrep.c#L232 [3] https://github.com/nanomsg/nanomsg/blob/master/src/protocols/reqrep/xrep.c#L158