NWGetInetAddr(3nw)


NWGetInetAddr -- returns Internet address of specified connection

Synopsis

   #include <nwconnec.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWGetInetAddr (NWCONN_HANDLE conn, NWCONN_NUM connNum, NWINET_ADDR N_FAR * inetAddr);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle associated with connNum.

connNum
(IN) Specifies the connection number of the station whose internetwork address is to be returned.

inetAddr
(OUT) Points to the internetwork address of connNum (10 bytes).

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x89FF
Failure

Notices

NWGetInetAddr replaces NWGetInternetAddress.

An internetwork address consists of networkAddr and netNodeAddr. (netNodeAddr is the physical address of the workstation's LAN board.) The internetwork address uniquely identifies a workstation throughout an internetwork. The address can be used to send packets directly to the workstation.

To print inetAddr, swap each byte by calling NWLongSwap on networkAddr, NWWordSwap on the first 2 bytes of netNodeAddr, and NWLongSwap on bytes 2 to 5 of netNodeAddr; otherwise it appears in the format other N_API calls expect.

Services

Connection

NCP calls

0x2222 23 17
Get File Server Information

0x2222 23 19
Get Internet Address

0x2222 23 26
Get Internet Address (new)

30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.