24 #ifndef _FNET_ERROR_H_ 26 #define _FNET_ERROR_H_ 182 #if defined(__cplusplus) 224 #if defined(__cplusplus) Network subsystem is unavailable. The stack is not initialized.
The socket has not been bound with fnet_socket_bind(). A socket must be bound to an address before c...
The action is in progress. An operation was attempted on a socket that already had an operation in p...
Cannot allocate the memory. The error is indicating a lack of required memory resources.
fnet_error_t fnet_error_get(void)
Returns the last error that occurred.
No more socket descriptors are available. An application has opened too many sockets. The maximum number of available socket descriptors is defined by the FNET_CFG_SOCKET_MAX.
Connection reset by peer. A connection was forcibly closed by the remote host. This normally result...
Protocol not supported. This error occurs if an application attempts to call fnet_socket() and the r...
Socket is not connected. A request to send or receive data was not allowed because the socket is not...
Invalid argument. An invalid argument was supplied.
Software caused the connection abort. An established connection was aborted due to a data transmissi...
Operation not supported. The attempted operation is not supported for the type of socket referenced...
void fnet_error_set(fnet_error_t error)
Sets the error code.
Destination address required. A required address was omitted from an operation on a socket...
Cannot assign the requested address. The requested address is not valid in its context. It normally results from an attempt to fnet_socket_bind() to an address that is not valid for the local machine. This may also result from fnet_socket_connect(), when the remote address or port is not valid for a remote machine (for example address or port is 0).
Address family not supported by the protocol family. The stack supports only the AF_INET family...
Socket is already connected. A fnet_socket_connect() or fnet_socket_listen() request was made on an ...
The connection has timed out. A connection attempt failed because the connected party did not proper...
Message too long. A message sent on a datagram socket was larger than the internal message buffer...
Connection closed by peer. The final (FIN) segment arrived and there is no data in the socket recei...
Address already in use. This error occurs, if an application attempts to fnet_socket_bind() or fnet_...
fnet_error_t
Possible socket error codes, returned by the fnet_error_get(), or used by the SO_ERROR option...
The socket has been shut down. A request to send or receive data was not allowed because the socket ...
No route to a host. A socket operation was attempted to an unreachable host.
Bad protocol option. An unknown, invalid, or unsupported option or level was specified in the fnet_...
Try again, a retry at some time later may be successful. This error is returned from operations on s...
Bad socket descriptor. An operation was attempted on a socket descriptor that does not refer to a va...
IP operation is disabled. It happens when Duplicate Address Detection fails for interface link-loca...
The network is unreachable. This error occurs, if socket cannot function at this time...