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> ipxsocketnumberget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 IPXSocketNumberGet()
------------------------------------------------------------------------------
 Purpose:
 Get the current IPX listening socket number.

 Syntax:
 iSocket = IPXSocketNumberGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned short int)

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

 Description:
 IPXSocketNumberGet() returns the number of the IPX socket that is being
 used to listen for incoming packets by the function IPXSocketOpen(). By
 default the socket number used by IPX to listen is 21845 (0x5555).

 Returns 0 if no socket is open.

 Example:
 // To find out which socket number IPXSocketOpen() is using to
 // listen for incoming packets from another workstation:
 if( ( iSocketNumber = IPXSocketNumberGet() ) > 0 )
    ? " IPXSocketOpen() is listening for incoming packets"
    ? "on socket number", iSocketNumber
 else
    ? " IPXSocketOpen() is NOT listening for incoming packets"
 endif

See Also: IPXInstalled() IPXSocketOpen() IPXPacketGet() IPXPacketSend()

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