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

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

Get the IPX/SPX address for the peer host the socket is connected to.

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

Definition at line 1155 of file winsock.cxx.

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

Referenced by PIPXSocket::GetName().

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

  AssignAddress(addr, sip);
  return TRUE;

Generated by  Doxygen 1.6.0   Back to index