getnameinfo:
Platform Builder for Microsoft Windows CE 5.0
头文件 Ws2tcpip.h.
链接库: Ws2.lib.
//具体参考下面
http://technet.microsoft.com/zh-cn/windows/aa450416(en-us).aspx
在文件开头添如下几句:
#include "winsock2.h"
#include
#pragma comment(lib,"ws2_32.lib")
int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags);
只接收struct sockaddr