xHarbour Reference Documentation > Function Reference |
Returns the last sockets error code.
INetErrorCode( <pSocket> ) --> nErrorCode
The function returnes the error code of the last sockets operation as a numeric value.
When a sockets function fails, the error code of the sockets operation is stored in <pSocket> and can be retrieved later with function INetErrorCode(). This error code remains with <pSocket> until a new sockets function is called with this socket or INetClearError() is executed.
To obtain a human readable description of a sockets error, call INetErrorDesc() with <pSocket>.
See also: | INetAccept(), INetClearError(), INetDGram(), INetConnect(), INetErrorDesc() |
Category: | Internet functions , Sockets functions , xHarbour extensions |
Source: | vm\INet.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com