Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_onipx( <cprocedure> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_ONIPX( <cProcedure> )


Parameters

<cProcedure>
Name of the procedure to call.


Returns

NIL


Description

The procedure named in <cProcedure> is called when an IPX message has 
been received and is waiting in the buffer.


Example

IF N_IPXSTATUS() = 'A'
  N_ONIPX('GetIPX')
ENDIF
.
.
.
PROCEDURE GetIPX
   LOCAL cBuffer, cNetAddr, cSender
   N_IPXRECV(@cBuffer, @cNetAddr)
   N_WHOAREYOU(cNetAddr, @cSender)
   ? 'From: ', cSender
   ? 'Message: ', cBuffer
   cBuffer := ""
   ACCEPT 'Enter a reply: ' TO cBuffer
   IF ! EMPTY(cBuffer)
      N_IPXSEND(cNetAddr, cBuffer)
   ENDIF
RETURN



See Also: N_IPXRECV() N_IPXSTATUS() N_ONSPX()

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