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

BOOL PIPXSocket::GetLocalAddress ( Address addr,
WORD &  port 
) [inherited]

Get the IPX/SPX address for the local host.

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

Definition at line 1142 of file winsock.cxx.

References PChannel::ConvertOSError(), PSocket::Net2Host(), 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);
  portNum = Net2Host(sip.sa_socket);
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index