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> spxconget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPXConGet()
------------------------------------------------------------------------------
 Purpose:
 Get an SPX connection number.

 Syntax:
 wWSConNum = SPXConGet( iSPXConNum )

 Parameters:
 iSPXConNum The NOVLIB SPX connection number.

 Returns:
 A numeric value (signed short int).

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

 SPXConGet() 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 = SPXConGet(1)
 if (wSPXConn !=NOVERRINT)
    if wSPXConn > 0
       ? "We are currently connected to workstation"
       ?? SPXAdrGet(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() SPXPktGet() SPXPktSnd() SPXConnect()

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