#include <nwconnec.h> or #include <nwcalls.h>NWCCODE N_API NWGetInetAddr (NWCONN_HANDLE conn, NWCONN_NUM connNum, NWINET_ADDR N_FAR
inetAddr);
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.
Connection