Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>ppcrecerr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PPCRECERR()
 Determines the error code of the most recent receiving process
------------------------------------------------------------------------------
 Syntax

     PPCRECERR(<nHandle>) --> nErrorCode

     Netware: 2.2 and 3.11

 Argument

     <nHandle>  Designates the communication receiving buffer.

 Returns

     PPCRECERR() returns the error code of the most recent receiving process
     for the specified receiving buffer.  If the packet has been received
     successfully, the function returns 0.  If an error occurs (for example,
     if the handle is invalid), the function returns -1.

 Description

     PPCRECERR() allows you to determine the error code of the most recent
     receiving operation, independently of the protocol used (IPX, SPX,
     NetBIOS datagram, or NetBIOS session).  The values are returned directly
     by the IPX/SPX or NetBIOS driver.  Therefore, the return value depends
     on the type of receiving buffer.  There is a description of the error
     codes for the IPX/SPX communication buffer and for the NetBIOS
     communication buffer in Appendices D and E.

     Packets that have been received but have been discarded due to a full
     buffer do not create an error code.

 Example

     Check to see if the last packet has been received successfully:

     IF PPCRECERR(nHandle) = 0
        ? 'Packet has been received successfully!'
     ELSE
        ? 'Error!'
     ENDIF

See Also: IPXERROR() NBERROR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson