提交 4f7b198b 编写于 作者: Y youngwolf 提交者: youngowlf

Add efficiency statistic for performance tuning, and can be shut down.

Move packers and unpackers out of 'include' directory (now in 'ext' directory), they don't belong to st_asio_wrapper library.
Add pingpong test.
Add streaming unpacker to receive native data.
Support non-copyable msgs.
Make asio_server and test_client more appropriate for performance tunning.
上级 5e0bf6e1
......@@ -125,7 +125,7 @@ namespace st_asio_wrapper
using typename i_packer<MsgType>::msg_type;
using typename i_packer<MsgType>::msg_ctype;
virtual bool pack_msg(msg_type& msg, const char* const pstr[], const size_t len[], size_t num, bool native = false) {assert(false); return msg_type();}
virtual bool pack_msg(msg_type& msg, const char* const pstr[], const size_t len[], size_t num, bool native = false) {assert(false); return false;}
};
//unpacker concept
......
......@@ -35,6 +35,10 @@
using namespace st_asio_wrapper;
using namespace st_asio_wrapper::ext;
#ifdef _MSC_VER
#define atoll _atoi64
#endif
#define QUIT_COMMAND "quit"
#define RESTART_COMMAND "restart"
#define LIST_ALL_CLIENT "list_all_client"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册