Contents

sock_receive

Declaration

errno_t sock_receive(socket_t so, struct msghdr *msg, int flags, size_t *recvdlen);

Parameters

  • so:

    The socket.

  • msg:

    The msg describing how the data should be received.

  • flags:

    See 'man 2 recvmsg'.

  • recvdlen:

    Number of bytes received, same as return value of userland recvmsg.

Return Value

0 on success, EWOULDBLOCK if non-blocking and operation would cause the thread to block, otherwise the errno error.

Discussion

Receive data from a socket. Similar to recvmsg. See 'man 2 recvmsg' for more information about receiving data.

See Also

Network Kernel Extensions