SOCSockAddrIn

C Specification

#include <nitroWiFi/soc.h>
#define SOC_PF_INET   2          // ARPA Internet protocols
typedef struct SOCSockAddrIn
{
u8          len;            // size of socket address structure
u8          family;         // the address family
u16         port;           // the port number
SOCInAddr   addr;           // the Internet address
} SOCSockAddrIn;

Description

SOCSockAddrIn is a data type that expresses Internet socket addresses. When passing the socket address structure to a function as an argument, set the len element to sizeof(SOCSockAddrIn).

Note: In the DS socket library, the size of the socket address structure is not used as a function argument.

See Also

SOC_Bind, SOC_Connect, SOC_Accept, SOC_GetSockName, SOCInAddr, SOCSockAddr

Revision History

09/13/2005 Initial version.