zeromq经典模型应用
摘要:转载:https://blog.csdn.net/brimsullowr/article/details/82770444 中文文档:https://blog.csdn.net/karlin999/article/details/79571357 ZeroMQ:23 模式之(独家对模式:ZMQ_PA
阅读全文
posted @
2021-02-25 15:43
码农er
阅读(84)
推荐(0)
czmp zeromq 编译 linux
摘要:依次编译zeromq 和czmp: ./autogen.sh ./configure --enable-static=no --enable-drafts=no LDFLAGS="-Wl,-z,origin -Wl,-rpath,'\$\$ORIGIN' $LDFLAGS" make sudo ma
阅读全文
posted @
2021-02-25 14:07
码农er
阅读(322)
推荐(0)
Boost学习笔记——boost的编译
摘要:https://blog.csdn.net/wang03989/article/details/42705791
阅读全文
posted @
2021-02-24 21:03
码农er
阅读(35)
推荐(0)
boost 线程(转)boost库timed_wait、notify_one配合使用
摘要:#include "stdafx.h" #include <boost/thread/thread.hpp>#include <boost/thread/mutex.hpp>#include <boost/thread/condition.hpp>#include <boost/date_time/
阅读全文
posted @
2021-02-24 14:44
码农er
阅读(643)
推荐(0)
获取当前绝对路径
摘要:std::string getCurModuleDir() { enum {BUF_LEN =1024}; char pcDirection[BUF_LEN]; memset(pcDirection,0,sizeof(pcDirection)); #if defined(WIN32) GetModu
阅读全文
posted @
2021-02-24 09:23
码农er
阅读(73)
推荐(0)
时间boost
摘要:#include <time.h> #include<sys/timeb.h> #ifdef WIN32 #include<Windows.h> #else #include<stdint.h> #include<sys/time.h> #endif #include"boost/chrono.hp
阅读全文
posted @
2021-02-23 17:47
码农er
阅读(113)
推荐(0)
导出类宏定义
摘要:#ifndef G_DECL_EXPORT #ifdef WIN32 #define G_DECL_EXPORT __declspec(dllexport) #else #define G_DECL_EXPORT __attribute__((visibility("default"))) #end
阅读全文
posted @
2021-02-23 16:21
码农er
阅读(180)
推荐(0)
类型定义
摘要:#include <inttypes.h> typedef int8_t int8; //<有符号 1字节 typedef uint8_t uint8; //无符号 1字节 typedef uint8_t byte; //< 无符号 1字节 typedef int16_t int16;//有符号 2
阅读全文
posted @
2021-02-23 15:59
码农er
阅读(131)
推荐(0)
QT PRI
摘要:linux-g++*{ DEFINES +=OS_LINUX #gcc默认为导出所有符号,此处修改为默认不导出,和msvc行为一致,原因如下: #1.避免不必要的冲突。导出的符号载入到进程的全局符号表,如果同名符号已存在则直接使用已存在的符号,可能导致调用到错误地址 #2.影响编译和运行时加载速度
阅读全文
posted @
2021-02-23 14:57
码农er
阅读(431)
推荐(0)