nn::socket Namespace

Description

Namespace for the socket API.

This library is provided for initializing and finalizing sockets when NEX features are used. Contact Nintendo if you want to use this library for direct communication.

Structures

nn::socket::SockAddrIn An IPv4 socket structure.
nn::socket::SockAddr A socket structure.
nn::socket::Linger A structure used with SO_LINGER in the GetSockOpt and SetSockOpt functions.
nn::socket::IpMreq A structure used when using IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP with the GetSockOpt and SetSockOpt functions.
nn::socket::PollFd A structure used with the Poll function.
nn::socket::AddrInfo A structure used with the GetAddrInfo function.
nn::socket::HostEnt A structure used with the GetHostByAddr function and GetHostByName function.
nn::socket::DnsAddr A structure for DNS server addresses.

Enumerated Types

ProtocolFamily An enumerated type representing protocol families.
AddressFamily An enumerated type representing address families.
SocketType An enumerated type representing socket types.
MessageFlag Flags given to functions such as RecvFrom and SendTo.
PollType Flags given to the Poll function.
SocketLevel Option levels given to functions such as GetSockOpt and SetSockOpt.
SocketOptionType Option numbers given to the GetSockOpt and SetSockOpt functions.
ShutdownType Flags given to the Shutdown function.
FcntlFlag Flags given to the Fcntl function.
FcntlOperation Mode values given to the Fcntl function.
AddrInfoType Flags given to the GetAddrInfo function.
NameInfoType Flags given to the GetNameInfo function.
AddrInfoError Error values returned by the GetAddrInfo and GetNameInfo functions.
SocketError Error values shared by socket functions. Errors without descriptions are used internally and are never returned by the socket API.

Functions

Initialization/Termination
Initialize Initializes the socket library, allowing socket API functions to be called.
GetRequiredMemorySize Gets the minimum amount of working memory required to initialize the socket library.
Finalize Finalizes the socket library and releases any resources used by it.
Utilities
GetDefaultGateway Gets the address of the default gateway.
GetPrimaryAddress Gets the IP address and netmask of the local host.
GetResolver Gets the address of the DNS server to use for name resolution.
GetMacAddress Gets the MAC address.
DumpRoutingTable Outputs the routing table to the console.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL