ns_cfg.h 409 B

12345678910111213141516171819
  1. #ifndef __NS_CFG_H
  2. #define __NS_CFG_H
  3. #if defined(NET_SERVER_USING_TLS)
  4. #define NS_ENABLE_SSL 1
  5. #else
  6. #define NS_ENABLE_SSL 0
  7. #endif
  8. #define NS_DATA_PKG_MAX_SIZE_DEFAULT 2048
  9. /**
  10. * Net server default thread config
  11. * */
  12. #define NS_THREAD_STACK_SIZE_DEFAULT 4096
  13. #define NS_THREAD_PRIORITY_DEFAULT 10
  14. #define NS_THREAD_TICK_DEFAULT 5
  15. #endif /* __NS_CFG_H */