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

 Syntax:
 lpszAddress = SPXAddressGet( wConNum )

 Parameters:
 wConNum The connection number.

 Returns:
 A character string of length 24.

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

 Description:
 SPXAddressGet() returns the full network address of the connection
 partner specified by the connection number wConNum. The network address
 is the physical address of the workstation to which SPX is connected.

 The network address is a 24 character string. The first 8 bytes represent
 the address of the network segment, the next 12 bytes the physical address
 of the workstation, and the last 4 bytes the socket number. For example,
 the address "0000000208001BC657734545" is made up of the network segment
 "00000002", the workstation's address "08001BC65773" and the socket number
 "4545". All these figures are in hexadecimal.

 Example:
 // To determine if an SPX session is in progress on connection number 5,
 // and if so, to which workstation we are connected:
 wSPXConn = SPXConnGet(5)
 if wSPXConn > 0
    ? "We are currently connected to workstation ", SPXAddressGet(5)
    ?? "on session number ", wSPXConn
 else
    ? "We are not currently connected to another workstation "
    ?? "via SPX connection number 5"
 endif

See Also: SPXInstalled() SPXPacketGet() SPXPacketSend() SPXConnect()

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