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_spxstatus( [ <nspxcn> [, @<hnetaddress> ] ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_SPXSTATUS( [ <nSPXCN> [, @<hNetAddress> ] ] )


Parameters

<nSPXCN>
SPX connection number obtained from N_SPXCONNECT().

<hNetAddress>
Name of a memory variable to receive the network address associated 
with an SPX connection. It must be passed by reference (that is, 
prefixed with @).


Returns



Description

Enables you to determine the status of SPX or to check the status of a 
specific SPX connection.

If a second argument is passed, NetLib will assume that it is the name 
of a memory variable to receive the sender's network address and will 
store the address in the variable.


Example

// Check that a connection is still live
// before sending a message.
IF 'A' $ N_SPXSTATUS(nConnection)
   N_SPXSEND(nConnection, cBuffer)
ELSE
   nConnection = 0
   DO WHILE nConnection = 0
      nConnection = N_SPXCONNECT(cNetAddr)
   ENDDO
   N_SPXSEND(nConnection, cBuffer)
ENDIF



See Also: N_SPXCONNECT() N_SPXRECV()

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