Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

spt_connectx(2) OSS System Calls Reference Manual
[EADDRINUSE]
An attempt was made to establish a connection using addresses that are already
in use.
[EADDRNOTAVAIL]
The specified address is not available from this node.
[EAFNOSUPPORT]
Addresses in the specified address family cannot be used with this socket.
[EALREADY] A connection request is already in progress for the specified socket.
[EBADF] The socket parameter is not a valid file descriptor.
[ECONNREFUSED]
One of these conditions occured:
The specified address is not listening for connections or rejected the
attempt to connect.
The socket bound to the AF_UNIX address is not using the same tran-
sport provider as the socket. This condition can occur if the system is
running AF_UNIX Release 2 software and the socket bound to address
is not of the same mode as socket.
For AF_UNIX Release 1 socket or an AF_UNIX Release 2 socket in
compatibility mode:
The caller attempted to connect a socket that previously had
been called by the listen() function with a backlog parameter
less than or equal to 0 (zero), and
There is no pending accept() call to that socket.
[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.
[EHOSTUNREACH]
The destination host cannot be reached.
[EINPROGRESS]
The socket is marked nonblocking (O_NONBLOCK is set) and the requested
connection is not yet completed. The connection will be completed asynchro-
nously.
[EINTR] The attempt to connect was interrupted by delivery of a signal. The connection
will be completed asynchronously.
7148 Hewlett-Packard Company 527186-023