提交 ccad5e0b 编写于 作者: Y youngwolf

Define macro ASCS_AVOID_AUTO_STOP_SERVICE for demo file_server and file_client as ascs required.

上级 bf2ee592
......@@ -5,6 +5,9 @@
#define ASCS_SERVER_PORT 5050
#define ASCS_DELAY_CLOSE 5 //define this to avoid hooks for async call (and slightly improve efficiency)
#define ASCS_PASSIVE_RECV
#ifndef ASCS_DECREASE_THREAD_AT_RUNTIME
#define ASCS_AVOID_AUTO_STOP_SERVICE
#endif
#define ASCS_RECV_BUFFER_TYPE std::vector<asio::mutable_buffer> //scatter-gather buffer, it's very useful under certain situations (for example, ring buffer).
#define ASCS_SCATTERED_RECV_BUFFER //used by unpackers, not belongs to ascs
//configuration
......
module = file_server
ext_cflag = -DASCS_RESTORE_OBJECT -DASCS_SERVER_PORT=5050 -DASCS_START_OBJECT_ID=500 -DASCS_WANT_MSG_SEND_NOTIFY -DASCS_INPUT_QUEUE=non_lock_queue
ext_cflag = -DASCS_RESTORE_OBJECT -DASCS_SERVER_PORT=5050 -DASCS_START_OBJECT_ID=500 -DASCS_WANT_MSG_SEND_NOTIFY -DASCS_AVOID_AUTO_STOP_SERVICE -DASCS_INPUT_QUEUE=non_lock_queue
ext_cflag += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
include ../config.mk
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册