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> spxconfreget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPXConFreGet()
------------------------------------------------------------------------------
 Purpose:
 Get the number of available SPX connections.

 Syntax:
 iConFree = SPXConFreGet()

 Parameters:
 None.

 Returns:
 A numeric value (signed short int).

 Description:
 SPXConFreGet() returns the number of available SPX connections on the
 calling workstation. The SHELL limits the number of simultaneous SPX
 connections for each workstation. By default the limit is 15, of which
 one is used by NETX. SPXConFreGet() should be called before attempting
 to establish an SPX connection to ensure there is a free connection slot.

 SPXConFreGet() returns NOVERRINT if an error occurs.

 Example:
 // To find out if there are any free SPX connection slots:
 iSPXConn = SPXConFreGet()
 if (iSPXConn != NOVERRINT)
    if iSPXConn > 0
       ? "There are ",iSPXConn," available SPX connections."
    else
       ? "There are NO available SPX connections."
    endif
 else
    ? "An error occurred"
 endif

 Notes:
 The maximum number of SPX connection slots can be increased by
 adding the line:

 SPX CONNECTIONS=< number >
 in SHELL.CFG file for the workstation.

See Also: SPXInstalled() SPXPktGet() SPXPktSnd() SPXConnect()

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