NAME

xubuflen - return length of xmsg

SYNOPSIS

#include <xio/socket.h>

int *xubuflen (void *xmsg);

DESCRIPTION

Return the xmessage size allocated by xallocubuf[3]

RETURN VALUE

On success, length is returned. On error, -1 is returned, and errno is set appropriately.

ERRORS

EINVAL

xmsg is not a valid xsockmsg

EXAMPLE

void *ubuf = xallocubuf (12);
assert (xubuflen(ubuf) == 12)

SEE ALSO

xallocubuf(3) xio(7)

AUTHORS

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