Developer

API Reference

ISockPort_GetPeerName()

Brew Release
Brew MP 1.0.2
See Also
None.
Description
This function returns the remote address of the connected socket.
Parameters
  • 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.
Interface
Prototype
   int ISockPort_GetPeerName(ISockPort* po, void* pAddr, int* pnSize)
Return
AEE_SUCCESS: pAddr has been successfully filled in with the remote address
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.
Side Effect
None.
Comment
None.
  • Follow