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_spxconnect( <hnetaddress> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_SPXCONNECT( <hNetAddress> )


Parameters

<hNetAddress>
Network address, as a 24-digit hexadecimal. See N_NETADDR().


Returns

A non-zero SPX connection number if a connection is established.

Zero if the attempt to connect fails. Common reasons for failure are an 
invalid target address, a target user who is not logged in, or a target 
that is not "listening." To get an exact error code, use N_ERROR().


Description

Attempts to create an SPX connection with a remote station at the 
address passed as <hNetAddress>. If the function makes a connection, it 
will return a non-zero SPX connection number that can be used as an 
argument for N_SPXSEND().

Note  The number of open connections that a station can maintain is 
set in the station's SHELL.CFG. See the NetWare Installation Guide for 
information on how to change the setting.


Example

// 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_SPXDISCONNECT() N_SPXSEND()

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