Get the IPX/SPX address for the peer host the socket is connected to.
Definition at line 1167 of file winsock.cxx. References PChannel::ConvertOSError(), PSocket::Net2Host(), and PChannel::os_handle. { sockaddr_ipx sip; int size = sizeof(sip); if (!ConvertOSError(::getpeername(os_handle, (struct sockaddr *)&sip, &size))) return FALSE; AssignAddress(addr, sip); portNum = Net2Host(sip.sa_socket); return TRUE; }
|