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>ppcrecfail()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PPCRECFAIL()
 Determines the number of packets received with a failure
------------------------------------------------------------------------------
 Syntax

     PPCRECFAIL(<nHandle>) --> nPackets

     Netware: 2.2 and 3.11

 Argument

     <nHandle>  Designates the communication receiving buffer.

 Returns

     PPCRECFAIL() returns the number of packets received with failure since
     the buffer has been opened.  If an error occurs (for example, if the
     handle is invalid), the function returns -1.

 Description

     PPCRECFAIL() determines the number of packets received with failure,
     independently of the protocol used (IPX, SPX, NetBIOS datagram, or
     NetBIOS session).  A faulty packet can be a packet for which the data
     length does not match the length defined in its header, or a packet that
     has been discarded because of a full buffer.  If a value of 65535
     packets has been exceeded, the count starts again at 0.

 Examples

     .  Check to see if packets have been received with failure:

        IF PPCRECFAIL(nHandle)>0
           ? 'Data integrity not guaranteed!'
        ENDIF

     .  Determine the number of faulty packets and the number of those
        packets that have been discarded due to a full buffer:

        ? 'Total of faulty packets:',PPCRECFAIL(nHandle)
        ? 'Discarded thereof:      ',PPCRECDISC(nHandle)

See Also: PPCRECDISC() PPCRECTOT()

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