36:450d2d5f4735 | 37:360b9aabe17e |
---|---|
28 | 28 |
29 #ifndef HTTPLISTENER_H | 29 #ifndef HTTPLISTENER_H |
30 #define HTTPLISTENER_H | 30 #define HTTPLISTENER_H |
31 | 31 |
32 #include "sessionhandler.h" | 32 #include "sessionhandler.h" |
33 | 33 #include "threadpools.h" |
34 #include "config.h" | 34 #include "config.h" |
35 | 35 |
36 #ifdef __cplusplus | 36 #ifdef __cplusplus |
37 extern "C" { | 37 extern "C" { |
38 #endif | 38 #endif |
48 }; | 48 }; |
49 struct _listener_config { | 49 struct _listener_config { |
50 ServerConfiguration *cfg; | 50 ServerConfiguration *cfg; |
51 sstr_t name; | 51 sstr_t name; |
52 sstr_t vs; | 52 sstr_t vs; |
53 sstr_t threadpool; | |
53 char *address; | 54 char *address; |
54 int port; | 55 int port; |
55 int nacceptors; | 56 int nacceptors; |
56 }; | 57 }; |
57 | 58 |
65 sstr_t name; | 66 sstr_t name; |
66 union vs default_vs; | 67 union vs default_vs; |
67 int port; | 68 int port; |
68 int server_socket; | 69 int server_socket; |
69 SessionHandler *session_handler; | 70 SessionHandler *session_handler; |
71 threadpool_t *threadpool; | |
70 HttpListener *next; | 72 HttpListener *next; |
71 Acceptor **acceptors; | 73 Acceptor **acceptors; |
72 int nacceptors; | 74 int nacceptors; |
73 uint32_t ref; // reference counter | 75 uint32_t ref; // reference counter |
74 }; | 76 }; |