API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ISOCKET_GETPEERNAME()

Brew Release
Brew MP 1.0.2
See Also
Description
This function returns the remote IP address and port of the connected peer. This function is not supported for UDP.
Params
pISocket
[]:
Pointer to the I ISocket Interface object.
pa
[]:
Pointer to the IP Address in network byte order
pwPort
[]:
Pointer to the port in network byte order.
Interface
  • ISOCKET
Prototype
  •     int ISOCKET_GetPeerName
        (
        ISocket * pISocket,
        INAddr * pa,
        INPort * pwPort
        )
    
Return
  • AEE_NET_SUCCESS: if successful. AEE_NET_EOPNOTSUPP: If UDP.
    Network error codes pertaining to the network failure.
Side Effect
  • None.
Comments
None.