#include <nitroWiFi/cps.h>
int CPS_RevResolve(CPSInAddr ip, char *name, u32 name_max);
ip |
IP address |
name |
Name |
name_max |
Name size |
| 0 | Succeeded |
| 1 | Failed on query |
| -1 | Region size insufficient to store result |
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.
CPS_SocRegister, CPS_SocUse, CPS_Resolve
2005/11/09 Initial version.
CONFIDENTIAL