206
K
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.
ENOTCONN The socket is not connected.
EWOULDBLOCK The socket is marked non-blocking and no data is
available for reading.
ESHUTDOWN The peer has closed the connection and no data is
available for reading.
ENOBUFS Memory needed to service the request is unavailable.
Restriction If there is no data available at the socket, the caller will be blocked waiting
for data to arrive 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 received is
restricted to 32767 bytes because the value returned by kn_readv() is a
signed integer.
See Also kn_connect(), kn_recv(), kn_recvfrom(),
kn_socket(), kn_writev()
Comments to this Manuals