Embedded TCP/IP stack  4.7.0

◆ fnet_error_get()

fnet_error_t fnet_error_get ( void  )

Returns the last error that occurred.

Returns
This function returns the error code for the last socket operation that failed.
The error codes are defined by the fnet_error_t.
See also
fnet_error_set()

When a particular socket function indicates that an error has occurred, this function should be called to retrieve the appropriate error code.
A successful socket function call, or a call to fnet_error_get(), does not reset the error code. To reset the error code, use the fnet_error_set() function call with error set to zero (FNET_ERR_OK).


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net