Previous Topic: Socket Error Codes Generated by Windows-based SystemsNext Topic: Transfer Object Server Information and Error Messages (600-615)


Socket Error Codes Generated by UNIX-based Systems

A list of UNIX error codes, UNIX internal labels, and their causes follows:

4 EINTR

This error is returned if a sockets function is interrupted while it is in progress.

9 EBADF

This error is returned if a sockets function is called with a bad file number or descriptor.

13 EACCES

Permission denied.

14 EFAULT

This error is returned if a sockets function is called with a bad address.

22 EINVAL

This error is returned if a sockets function is called with an invalid argument.

24 EMFILE

Too many files open.

11 EWOULDBLOCK

Resource temporarily unavailable.

150 EINPROGRESS

This error is returned if a sockets function is called while a blocking function is in progress.

149 EALREADY

This error is returned if a sockets function is called while a function is already in progress.

95 ENOTSOCK

This error is returned is a sockets function is performed on a non-socket.

96 EDESTADDRREQ

Destination address required.

97 EMSGSIZE

Message too long.

98 EPROTOTYPE

Protocol type wrong for socket.

99 ENOPROTOOPT

Protocol not available.

120 EPROTONOSUPPORT

Protocol not supported.

121 ESOCKTNOSUPPORT

Socket type not supported.

122 EOPNOTSUPP

Operation not supported on socket.

123 EPFNOSUPPORT

Protocol family not supported.

124 EAFNOSUPPORT

Address family not supported.

125 EADDRINUSE

Address already in use.

126 EADDRNOTAVAIL

Cannot assign requested address.

127 ENETDOWN

This error may be reported at any time if the sockets implementation detects an underlying failure. Generally used to mean that the network is down.

128 ENETUNREACH

Network is unreachable.

129 ENETRESET

Network dropped connection due to reset.

130 ECONNABORTED

Software caused connection abort.

131 ECONNRESET

Connection reset by peer.

132 ENOBUFS

No buffer space available.

133 EISCONN

Socket is already connected.

134 ENOTCONN

Socket is not connected.

143 ESHUTDOWN

Cannot send after socket shutdown.

144 ETOOMANYREFS

Too many references: cannot splice

145 ETIMEDOUT

Connection timed out.

146 ECONNREFUSED

Connection refused.

90 ELOOP

Symbolic link loop.

78 ENAMETOOLONG

Path name is too long.

147 EHOSTDOWN

The host is down.

148 EHOSTUNREACH

No route to host.