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>spxcontarg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPXCONTARG()
 Determines the target internet address of an SPX communication
------------------------------------------------------------------------------
 Syntax

     SPXCONTARG(<nHandle>) --> cInterNetAddr

     Netware: 2.2 and 3.11

 Argument

     <nHandle>  Designates the communication buffer.

 Returns

     SPXCONTARG() returns the destination's internet address.  If <nHandle>
     does not specify an SPX communication buffer or the SPX connection is
     not active, the function returns an empty string.

 Description

     SPXCONTARG() allows you to determine the destination's internet address
     after a successful call of SPXLISTCON().  The address is returned as a
     20-character hexadecimal string that contains 10 bytes in hexadecimal
     form.  The leading eight characters indicate the destination's network
     number.  The following 12 characters indicate the station ID (node
     address).

 Example

     Wait for an SPX connection in the background.  After the connection has
     been set up, display the destination's internet address:

     nHandle=SPXLISTCON(20000,1000,1000)
     WHILE .NOT. PPCCONACT(nHandle)
     ENDDO
     ? 'Connection set up with ',SPXCONTARG(nHandle)

See Also: SPXLISTCON()

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