CPS_RevResolve

C Specification

#include <nitroWiFi/cps.h>
int CPS_RevResolve(CPSInAddr ip, char *name, u32 name_max);

Arguments

ip IP address
name Name
name_max Name size

Return Values

0 Succeeded
1 Failed on query
-1 Region size insufficient to store result

Description

Queries the DNS server and changes the IP address to a name. Because the result is not cached, cache it in the application if necessary. Because this function uses UDP, it cannot be used if the state is already CPS_SocUse. CPS_SocRegister must be executing. Specifies a pointer to the area that stores the result and the size of that area. The size represents the length and includes the terminating ‘\0.’ Returns 0 if the function succeeds, 1 if it fails on query, and -1 if the area size is insufficient to store the result. This blocks.

See Also

CPS_SocRegister, CPS_SocUse, CPS_Resolve

Revision History

11/09/2005 Initial version.