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

 Syntax:
 lpszAddress = WSNdeAdrGet( iConnNum )

 Parameters:
 iConnNum The connection number.

 Returns:
 A character string of length 12.

 Description:
 WSNdeAdrGet() 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, WSNdeAdrGet()
 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 = WSNdeAdrGet(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 = WSNdeAdrGet( n )
    if ( !empty ( lpszAddress ) )
       ? "Connection ", n," has the physical address ", lpszAddress
    else
       ? "Connection ", n," is not active"
    endif
 next

See Also: WSNetAdrGet()

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