NAME

xfreeubuf - deallocate a message

SYNOPSIS

#include <xio/socket.h>

void xfreeubuf (void *msg);

DESCRIPTION

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.

RETURN VALUE

Nothing return.

ERRORS

EXAMPLE

void *ubuf;
assert (xrecv (s, &ubuf) == 0);
xfreeubuf (ubuf);

SEE ALSO

xallocubuf(3) xubuflen(3) xrecv(3) xio(7)

AUTHORS

Dong Fang <yp.fangdong@gmail.com>
Martin Sustrik <sustrik@250bpm.com>