List of error codes
In the following is a list of networking error codes,
the protocol or operation during which the error is likely
to occur is given at the beginning of the explanation.
-------------------------------------------------------------- EALREADY Operation already in progress -------------------------------------------------------------- EINPROGRESS Operation now in progress -------------------------------------------------------------- EWOULDBLOCK Operation would block --------------------------------------------------------------
--------------------------------------------------------
EADDRINUSE Address already An attempt was made
in use to create a socket
with a UNIX pathname
which already
exists.
--------------------------------------------------------
EAFNOSUPPORT Address family
not supported
by protocol
family
--------------------------------------------------------
EDESTADDRREQ Destination
address
required
--------------------------------------------------------
EMSGSIZE Message too
long
--------------------------------------------------------
ENOTSOCK Socket
operation on
non-socket
--------------------------------------------------------
EOPNOTSUPP Operation not
supported on
socket
--------------------------------------------------------
EPFNOSUPPORT Protocol family
not supported
--------------------------------------------------------
EPROTONOSUPPORT Protocol not Creating a socket.
supported Unknown protocol or
protocol not
supported.
--------------------------------------------------------
EPROTOTYPE Protocol wrong Creating a socket.
type for socket Socket type request
has no supporting
protocol.
--------------------------------------------------------
ESOCKTNOSUPPORT Socket type not
supported
--------------------------------------------------------
-----------------------------------------------------
ECONNABORTED Software caused
connection
abort
-----------------------------------------------------
ECONNREFUSED Connection Socket connection.
refused The host refused
service for some
reason. This error
is usually caused by
a server process not
being present at the
requested name.
-----------------------------------------------------
ECONNRESET Connection The remote peer
reset by peer forced the session
to be closed.
-----------------------------------------------------
EISCONN Socket is An attempt was made
already to establish a
connected connection on a
socket that already
has one or an
attempt was made to
send a datagram with
the destination
address specified
and the socket is
already connected.
-----------------------------------------------------
ENOBUFS No buffer space Any socket
available operation. The
system lacks
sufficient memory
for an internal data
structure.
-----------------------------------------------------
ENOENT No such file or Connection could not
directory be established.
-----------------------------------------------------
ENOTCONN Socket is not An attempt was made
connected to send a datagram,
but no destination
address is
specified, and the
socket has not been
connected.
-----------------------------------------------------
ESHUTDOWN Cannot send
after socket
shutdown
-----------------------------------------------------
-----------------------------------------------------
ENOPROTOOPT Protocol not
available
-----------------------------------------------------