- po:pointer to the ISockPort interface
- pAddr:an opaque pointer to the address to be filled in (see AEESockAddrStorage)
- pnSize:a pointer to the size of the address. Prior to the call, this size should be initialized to the size of the space that pAddr points to. Upon return, this size will reflect the number of bytes written into pAddr.
int ISockPort_GetPeerName(ISockPort* po, void* pAddr, int* pnSize)
AEE_NET_EBADF : socket is not open AEE_NET_EOPNOTSUPP: The socket is not of type SOCK_STREAM AEE_NET_EINVAL : not a stream socket AEE_NET_ENOTCONN : socket is not connected AEE_NET_ECONNRESET: remote connection has been closed AEE_NET_EFAULT : invalid address parameter has been specified
Other error codes are also possible.