SOC_GetSockName

C Specification

#include <nitroWiFi/soc.h>
int SOC_GetSockName( int s, void* sockAddr );

Arguments

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)).

Return Values

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.

Description

This function gets the name (address) locally bound to the specified socket.

See Also

SOC_Bind

Revision History

09/13/2005 Initial version.