31 lines
673 B
C
31 lines
673 B
C
//sf_define.h
|
|
|
|
#ifndef _SF_DEFINE_H_
|
|
#define _SF_DEFINE_H_
|
|
|
|
#include "fastcommon/common_define.h"
|
|
|
|
#define SF_DEF_THREAD_STACK_SIZE (64 * 1024)
|
|
#define SF_DEF_MAX_PACKAGE_SIZE (16 * 1024)
|
|
#define SF_DEF_MIN_BUFF_SIZE (64 * 1024)
|
|
#define SF_DEF_MAX_BUFF_SIZE (64 * 1024)
|
|
|
|
#define SF_NIO_STAGE_INIT 0 //set ioevent
|
|
#define SF_NIO_STAGE_RECV 1 //recv
|
|
#define SF_NIO_STAGE_SEND 2 //send
|
|
#define SF_NIO_STAGE_FORWARDED 3 //deal the forwarded request
|
|
#define SF_NIO_STAGE_CONTINUE 4 //notify the thread continue deal
|
|
#define SF_NIO_STAGE_CLOSE 9 //cleanup the task
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|