nn::socket::GetHostByAddr Function

Syntax

HostEnt * GetHostByAddr(
     const void * addr,
     s32 len,
     s32 type
);

Arguments

Name Description
in addr Specifies a pointer to a buffer len bytes in length, which holds the host address in numeric format.
in len Specifies the length in bytes of the host address in numeric format. When using AF_INET, specify IP_ALEN.
in type Specifies the address family of the host address. AF_INET

Return Values

If successful, returns a pointer to a HostEnt structure containing the host's information. The structure instance is a library internal buffer.

Description

Searches for host information based on the host address.

Since this function might query the DNS server, it blocks until the search is complete.

See Also

GetHostByName, GetNameInfo

Revision History

2010/06/14
Initial version.

CONFIDENTIAL