GetStationAddress

Returns the physical node address

Local Servers:nonblocking
Remote Servers:blocking
Classification:3.x, 4.x, 5.x, 6.x
Service:Server-Based Connection

Syntax

  #include <nwconn.h>  
   
  void GetStationAddress (  
     BYTE   *nodeAddress); 
  

Parameters

nodeAddress
(OUT) Receives the node address (6 bytes).

Remarks

GetStationAddress always returns the node address as 0x000000000001. The reason for this is that the NetWare 3.x and 4.x OS uses an internal network number, and the server is node number 1 on the internal network.

In general, the nodeAddress uniquely identifies an object on a network. The internetwork address (network number and physical node address) uniquely identifies an object throughout an internetwork.

This function does not return the 4-byte networkNumber, which is also needed to send packets on the internet. The complete address of a station can be obtained by calling GetConnectionNumber and then calling GetInternetAddress.

See Also

GetConnectionNumber, GetInternetAddress

GetStationAddress Example

  #include <stdio.h>  
  #include <stdlib.h>  
  #include <nwconn.h>  
   
  main()  
  {  
     int    ccode;  
     BYTE   nodeAddress[6];  
     GetStationAddress (nodeAddress);  
     printf ("Station Address:      %02X%02X%02X%02X%02X%02X",  
        nodeAddress[0],  
        nodeAddress[1],  
        nodeAddress[2],  
        nodeAddress[3],  
        nodeAddress[4],  
        nodeAddress[5] );  
  }