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> wsnodeaddressget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSNodeAddressGet()
------------------------------------------------------------------------------
 Purpose:
 Get a workstation's physical node address.

 Syntax:
 lpszAddress = WSNodeAddressGet( iConnNum )

 Parameters:
 iConnNum The connection number.

 Returns:
 A character string of length 12.

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

 Description:
 WSNodeAddressGet() returns a character string containing the unique
 hexadecimal address of the workstation's network card. iConnNum is the
 connection number of the workstation for which to return the address.
 If iConnNum is passed as the constant NOVDEFINT, WSNodeAddressGet()
 returns the address of the calling workstation.

 Returns an empty string if an error occurs.

 Example:
 // To display the physical node address of the workstation:
 lpszAddress = WSNodeAddressGet(NOVDEFINT)
 if ( !empty ( lpszAddress ) )
    ? "The node address of the current workstation is ", lpszAddress
 endif
 // To list the physical addresses of all workstations on the network:
 for n = 1 to 1000
    lpszAddress = WSNodeAddressGet( n )
    if ( !empty ( lpszAddress ) )
       ? "Connection ", n," has the physical address ", lpszAddress
    else
       ? "Connection ", n," is not active"
    endif
 next

See Also: WSNetAddressGet()

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