Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (r) recv(2)
[ECONNRESET]
One of the following conditions occurred:
• The transport-provider process for this socket is no longer available.
• The TCP/IP subsystem for this socket is no longer available.
• The connection was forcibly closed by the peer socket.
The socket can only be closed.
[EFAULT] A user-supplied memory buffer cannot be accessed or written.
[EINTR] A signal interrupted the function before any data was available.
This error is also returned if the recv() function is thread-aware and a signal
received from the pthread_kill() function is not blocked, ignored, or handled.
[EINVAL] The MSG_OOB value is specified in the flags parameter and no out-of-band
data is available.
[EIO] An input or output error occurred.
[ENOBUFS] There was not enough buffer space available to complete the call. A retry at a
later time might succeed.
[ENOMEM] There was insufficient memory available to complete the operation.
[ENOTCONN] A receive operation was attempted on a connection-oriented socket that is not
connected.
[ENOTSOCK] The socket parameter does not refer to a socket.
[EOPNOTSUPP]
The specified value for the flags parameter is not supported for this socket type
or protocol.
[ETIMEDOUT]
A transmission timed out on an active connection.
[EWOULDBLOCK]
The socket file descriptor is marked nonblocking (O_NONBLOCK is set) and
the operation would block.
RELATED INFORMATION
Functions: fcntl(2), read(2), recvfrom(2), recvmsg(2), select(2), send(2), sendmsg(2),
sendto(2), shutdown(2), sockatmark(2), socket(2), spt_recvx(2), write(2).
STANDARDS CONFORMANCE
The HP implementation does not return the errno value [ENOSR].
The following are HP extensions to the XPG4 specification:
• The errno value [ECONNRESET] can be returned when the transport-provider process
is unavailable.
The use of this function with the POSIX User Thread Model library conforms to the following
industry standards:
• IEEE Std 1003.1-2004, POSIX System Application Program Interface
527186-023 Hewlett-Packard Company 6−23