Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> spxconnget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPXConnGet()
------------------------------------------------------------------------------
 Purpose:
 Get an SPX connection number.

 Syntax:
 wWSConNum = SPXConnGet( iSPXConNum )

 Parameters:
 iSPXConNum The NOVLIB SPX connection number.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper name for this function is:
 SPXConGet()

 Description:
 SPXConnGet() returns the actual Novell SPX session handle of the SPX
 session specified by the NOVLIB SPX connection number iSPXConNum.

 SPXConnGet() returns NOVERRINT if no SPX session is in progress.

 Example:
 // To find out if there is an SPX session in progress for connection
 // number 1, and if so, to which workstation we are connected:
 wSPXConn = SPXConnGet(1)
 if (wSPXConn !=NOVERRINT)
    if wSPXConn > 0
       ? "We are currently connected to workstation"
       ?? SPXAddressGet(1)
       ?? "on SPX session number ",wSPXConn
    else
       ? "We are not currently connected to another workstation
       ?? "via SPX connection number 1"
    endif
 else
    ? "No SPX session in progress."
 endif

See Also: SPXInstalled() SPXPacketGet() SPXPacketSend() SPXConnect()

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