xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

INetErrorCode()

Returns the last sockets error code.

Syntax

INetErrorCode( <pSocket> ) --> nErrorCode

Arguments

<pSocket>
This is a pointer to a socket.

Return

The function returnes the error code of the last sockets operation as a numeric value.

Description

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>.

Info

See also:INetAccept(), INetClearError(), INetDGram(), INetConnect(), INetErrorDesc()
Category: Internet functions , Sockets functions , xHarbour extensions
Source:vm\INet.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe