Contents

sock_send

Declaration

errno_t sock_send(socket_t so, const struct msghdr *msg, int flags, size_t *sentlen);

Parameters

  • so:

    The socket.

  • msg:

    The msg describing how the data should be sent. Any pointers must point to data in the kernel.

  • flags:

    See 'man 2 sendmsg'.

  • sentlen:

    The number of bytes sent.

Return Value

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

Discussion

Send data on a socket. Similar to sendmsg. See 'man 2 sendmsg' for more information about sending data.

See Also

Network Kernel Extensions