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

System Functions (a - d) connect(2)
[ENETDOWN]
The local interface used to reach the destination is down.
[ENETUNREACH]
No route to the network or host is present.
[ENOBUFS] There was not enough buffer space available to complete the call. A retry at a
later time may succeed.
[ENOENT] The socket is in the AF_UNIX domain and one of the following conditions
exists:
A component of the pathname specified in the sockaddr structure does
not name an existing file.
The sockaddr structure specifies an empty string as a pathname.
[ENOMEM] Required memory resources were not available. A retry at a later time might
succeed.
[ENOTDIR] The socket is in the AF_UNIX domain and a component of the pathname
specified in the sockaddr structure is not a directory.
[ENOTSOCK] The socket parameter does not refer to a socket.
[EPERM] One of the following conditions exist:
The calling process does not have appropriate privileges.
The program attempted an operation on a SEEP-protected fileset. Valid
for J06.15 and later J-series RVUs, and H06.26 and later H-series RVUs.
[EPROTOTYPE]
The specified address has a different type than that of the socket bound to the
specified peer address.
[ETIMEDOUT]
The attempt to connect timed out during connection establishment.
[EWOULDBLOCK]
The socket is marked nonblocking and the connection cannot be immediately
completed. The application program can select the socket for writing during the
connection process. The connection request will take place asynchronously.
RELATED INFORMATION
Functions: accept(2), bind(2), getsockname(2), listen(2), select(2), send(2), sendmsg(2),
sendto(2), socket(2), spt_connectx(2).
STANDARDS CONFORMANCE
The XPG4 specification allows certain behavior to be implementer-defined. The following are
choices of the HP implementation:
The HP implementation does not return the errno values [ENOSR] or [EOPNOTSUPP].
The following are HP extensions to the XPG4 specification:
The errno value [ECONNRESET] can be returned when the transport-provider process
or OSS Local Server 2 process is unavailable.
The use of this function with the POSIX User Thread Model library conforms to the following
527186-023 Hewlett-Packard Company 141