void *ubuf; assert (xrecv (s, &ubuf) == 0); xfreeubuf (ubuf);
xfreeubuf - deallocate a message
#include <xio/socket.h>
void xfreeubuf (void *msg);
Deallocates a message allocated using xallocubuf(3) function or received via xrecv(3) function. when message send, it maybe directly push into the peer xmq. it allows for using zero-copy techniques.
Nothing return.
void *ubuf; assert (xrecv (s, &ubuf) == 0); xfreeubuf (ubuf);
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>