2017年3月2日

摘要: //getaddrinfo()函数原型 WINSOCK_API_LINKAGE INT WSAAPI getaddrinfo( _In_opt_ PCSTR pNodeName, //节点名可以是主机名,也可以是数字地址。(IPV4的10进点分,或是IPV6的16进制) _In_opt_ PCSTR 阅读全文
posted @ 2017-03-02 10:37 czhoud 阅读(411) 评论(0) 推荐(0) 编辑
摘要: //转换示例: CString cstring= "hello,bro "; char* pcharbuf=new char; int iSize = WideCharToMultiByte(CP_ACP, 0, cstring, -1, NULL, 0, NULL, NULL); WideChar 阅读全文
posted @ 2017-03-02 10:34 czhoud 阅读(2781) 评论(0) 推荐(0) 编辑
摘要: 1. inet_ntop()、inet_pton() : 点分十进制字符串(dotted-decimal notation)与网络字节序(network byte order)二进制数值互转 //inet_ntop()函数原型 PCSTR WSAAPI inet_ntop( _In_ INT Fam 阅读全文
posted @ 2017-03-02 10:29 czhoud 阅读(4434) 评论(0) 推荐(0) 编辑

导航