#include <nitroWiFi/soc.h>
int SOC_GetSockName( int s, void* sockAddr );
s |
Socket descriptor. |
sockAddr |
The pointer to the socket address structures (SOCSockAddr andSOCSockAddrIn ) that register the names bound locally. Make sure to properly initialize the len field of the socket address. (Example: sizeof(SOCSockAddrIn) ). |
0 | Successful. |
SOC_ENETRESET |
Socket is not initialized. |
Note: Additional errors may be generated and returned in future library releases. Please treat all negative return values as general errors.
This function gets the name (address) locally bound to the specified socket.
09/13/2005 Initial version.