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

 Syntax:
 dwSocket = SPXSocketNumberGet()

 Parameters:
 None.

 Returns:
 A numeric value (DWORD).

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

 Description:
 SPXSocketNumberGet() 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.

 SPXSocketNumberGet() 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 = SPXSocketNumberGet()
 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() SPXPacketGet()

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