User`s guide

224
K
A
DAK
KwikNet TCP/IP Sockets
Returns ...continued
The error indicator for socket
s is set to define the reason for failure. Use
kn_errno() to retrieve the error code.
EBADF The socket descriptor s is invalid.
EINVAL Parameter iovecp or iovcnt is invalid or
the buffer length in a data vector was declared to be
less than 0 or the sum of the data vector lengths
exceeds the maximum size of an integer.
EMSGSIZE The message is larger than the maximum which can
be sent atomically as required by the socket protocol.
ENOTCONN The socket is not connected.
EWOULDBLOCK The socket is marked non-blocking but there is a need
to block the caller to complete the operation.
ESHUTDOWN The socket has been marked to shut down writing or
the socket is in the process of being closed.
ENOBUFS Memory is not available to complete the request.
Restriction If none of the message data can be delivered to the socket, the caller will
be blocked unless the socket s is marked as non-blocking. In the latter
case, the caller will resume with a -1 error status and the error code
EWOULDBLOCK will be stored in the socket descriptor.
Restriction On 16-bit processors, the amount of data which can be sent is restricted to
32767 bytes because the value returned by kn_writev() is a signed
integer.
See Also
kn_connect(), kn_readv(), kn_send(), kn_sendto(), kn_socket()