会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
czhoud
2017年3月2日
getaddrinfo()
摘要: //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
阅读(439)
评论(0)
推荐(0)
在UNICODE编码格式下, CString 转换为 char* :
摘要: //转换示例: 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
阅读(2826)
评论(0)
推荐(0)
inet_ntop(), inet_pton(), htonl(), ntohl()
摘要: 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
阅读(4516)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告