2017年12月6日

摘要: UInt64 hl64ton(UInt64 host){ UInt64 ret = 0; UInt64 high,low; low = host & 0xFFFFFFFF; high = (host >> 32) & 0xFFFFFFFF; low = htonl(low); high = hton 阅读全文
posted @ 2017-12-06 23:40 lydstory 阅读(541) 评论(0) 推荐(0) 编辑
摘要: ntohs unsigned short 网络字节序转换成主机字节序 ntohl unsigned long 网络字节序转换成主机字节序 http://blog.csdn.net/msdnwolaile/article/details/50727653 阅读全文
posted @ 2017-12-06 23:27 lydstory 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 今天发现一个inline 引起undefined reference to 问题, 刚开始 以为是链接库 找不到的问题,以为是makfile 或者的 文件没有编译进去 调整2,3小时 不得解释 最终解决方法: 添加一个类的另一个方法,GetText() 调用居然成功,还是类成员函数的问题 最后去掉i 阅读全文
posted @ 2017-12-06 17:24 lydstory 阅读(126) 评论(0) 推荐(0) 编辑
摘要: main.cc:57: undefined reference to `evpp::udp::UdpDecoder::GetHeader()'collect2: error: ld returned 1 exit statusmake[2]: *** [bin/example_udpecho] Er 阅读全文
posted @ 2017-12-06 17:19 lydstory 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 适用于windows 和 linux 网络发过来的包 解析 使用 阅读全文
posted @ 2017-12-06 11:15 lydstory 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 位(bit)字节(byte)一字节是8位所以2Byte是16位二进制 阅读全文
posted @ 2017-12-06 00:20 lydstory 阅读(305) 评论(0) 推荐(0) 编辑
摘要: https://jingyan.baidu.com/article/ea24bc399fccb9da62b331bd.html 阅读全文
posted @ 2017-12-06 00:08 lydstory 阅读(189) 评论(0) 推荐(0) 编辑

导航