推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html
全部博文(594)
发布时间:2017-08-16 13:08:13
coredump的调用栈:#0 0xf76f5440 in __kernel_vsyscall ()#1 0xf73c4657 in raise () from /lib/libc.so.6#2 0xf73c5e93 in abort () from /lib/libc.so.6#3 0xf75fe78d in __gnu_cxx::__verbose_terminate_handler() () from /lib/libstdc++.so.6#4 0xf75fc263 in ?? () from /lib/li.........【阅读全文】
发布时间:2017-06-15 09:52:54
C++11将addressof作为标准库的一部分,用于取变量和函数等内存地址。代码示例:#include <memory>#include <stdio.h>void f() {}int main(){ int m; printf("%p\n", std::addressof(m)); // 一些环境非C++11可用std::__addressof printf("%p\n", std::addressof(f)).........【阅读全文】
发布时间:2017-03-03 17:47:24
coredump时的调用栈:#0 0x081eff2c in addbyter ()#1 0x081f05b8 in dprintf_formatf ()#2 0x081f15cf in curl_mvsnprintf ()#3 0x081f0079 in curl_msnprintf ()#4 0x081ef55c in Curl_failf ()#5 0x081fa1a3 in Curl_resolv_timeout ()#6 0xeb8fbdd4 in ?? ()#7 &nbs.........【阅读全文】
发布时间:2016-08-25 13:26:06
#include <inttypes.h>#include <stdint.h>#include <stdio.h>// g++ -g -o x x.cpp -D__STDC_FORMAT_MACROS -std=c++11int main(){ int64_t a = 32; //printf("%"PRId64"\n", a); printf("%" PRId64"\n", a); // 在PRId64前保.........【阅读全文】
发布时间:2016-08-25 12:57:44
# 相关链接:https://cmake.org/cmake/help/v3.0/module/CheckCXXCompilerFlag.htmlinclude(CheckCXXCompilerFlag)CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)if(COMPILER_SUPPORTS_CXX11) add_definitions("-std=c++11")endif()......【阅读全文】
发布时间:2016-05-12 14:53:54
// 测试setsockopt设置超时是否生效代码#include <arpa/inet.h>#include <netinet/in.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <sys/socket.h>#include <sys/types.h>#include <unistd.h>.........【阅读全文】
yuanxy20132014-01-14 14:48
LZ,你的基于C++的纯面向对象的通用高性能大并发TCP-SERVER/CLIENT开发框架实践系列之《前言篇》,《基础篇》写得非常棒,但是《服务器篇》、《客户端篇》却找不到,恳请楼主赐读。