Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PIPXSocket::GetLocalAddress ( Address addr  )  [inherited]

Get the IPX/SPX address for the local host.

Returns:
TRUE if the IPX number was returned.
Parameters:
addr  Variable to receive hosts IPX address

Definition at line 1130 of file winsock.cxx.

References PChannel::ConvertOSError(), and PChannel::os_handle.

{
  sockaddr_ipx sip;
  int size = sizeof(sip);
  if (!ConvertOSError(::getsockname(os_handle, (struct sockaddr *)&sip, &size)))
    return FALSE;

  AssignAddress(addr, sip);
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index