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

 Syntax:
 dwSocket = SPXSktNumGet()

 Parameters:
 None.

 Returns:
 A numeric value (DWORD).

 Description:
 SPXSktNumGet() returns the number of the IPX socket that is being
 used by the SPX connection. By default the socket number used by
 SPXConnect() is 17733, unless it was explicitly changed when SPXConnect()
 was called.

 SPXSktNumGet() returns 0 if there is no SPX connection in progress.

 Example:
 // To find out which socket number SPX connection 5 is using during an
 // SPX connection:
 dwSocketNumber = SPXSktNumGet()
 if ((dwSocketNumber)  > 0 )
    ? "SPX is using socket number",dwSocketNumber
    ? "for the SPX connections."
 else
    ? "There is NO SPX connection"
 endif

 Notes:
 By default the listening socket is 17733 ( 0x4545 ) unless
 SPXConnect() is given an explicit socket number with which to connect.

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

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