skynet_imp.h 409 B

123456789101112131415161718192021222324
  1. #ifndef SKYNET_IMP_H
  2. #define SKYNET_IMP_H
  3. struct skynet_config {
  4. int thread;
  5. int harbor;
  6. int profile;
  7. const char * daemon;
  8. const char * module_path;
  9. const char * bootstrap;
  10. const char * logger;
  11. const char * logservice;
  12. };
  13. #define THREAD_WORKER 0
  14. #define THREAD_MAIN 1
  15. #define THREAD_SOCKET 2
  16. #define THREAD_TIMER 3
  17. #define THREAD_MONITOR 4
  18. void skynet_start(struct skynet_config * config);
  19. #endif