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_spxdisconnect( <nspxcn> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_SPXDISCONNECT( <nSPXCN> )


Parameters

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


Returns

NIL


Description

Breaks an SPX connection established with N_SPXCONNECT(). If the 
connection does not exist, no action is taken.


Example

// Connect with a remote station and send a message
cBuffer = 'Hello'
nSPXCon = 0
DO WHILE nSPXCon = 0
   nSPXCon = N_SPXCONNECT(N_NETADDR('WHIRLED', 'FS1'))
ENDDO
N_SPXSEND(nSPXCon, cBuffer)
N_SPXDISCONNECT(nSPXCon)

// Connect with a remote station and send a message
cBuffer = 'Watson come here, I need you.'
nConnection = N_SPXCONNECT(N_NETADDR('WATSON', 'FS1'))
IF nConnection != 0
   N_SPXSEND(nConnection, cBuffer)
   N_SPXDISCONNECT(nConnection)
ENDIF



See Also: N_SPXCONNECT()

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