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

Developer

API Reference

ISOCKET_GETSOCKNAME()

Brew Release
Brew MP 1.0.2
See Also
Description
This function returns the local IP address and port of the socket.
Params
pISocket
[in]:
Pointer to the ISocket Interface whose name is to be returned.
pAddr
[out]:
Pointer to the IP Address t in network byte order.
pPort
[out]:
Pointer to the port t in network byte order.
Interface
  • ISOCKET
Prototype
  •     int ISOCKET_GetSockName
        (
        ISocket * pISocket,
        INAddr * pAddr,
        INPort * pPort
        )
    
Return
  • AEE_NET_SUCCESS: The local IP address and port have been returned.
    Specific error code: If the operation failed.
Side Effect
  • None.
Comments
This is not a formal member of ISocket. Instead it is a wrapper around ISOCKET_IOCtl()