54 VirtualServer *vs; |
54 VirtualServer *vs; |
55 char *vs_name; |
55 char *vs_name; |
56 }; |
56 }; |
57 struct _listener_config { |
57 struct _listener_config { |
58 ServerConfiguration *cfg; |
58 ServerConfiguration *cfg; |
59 sstr_t name; |
59 cxmutstr name; |
60 sstr_t vs; |
60 cxmutstr vs; |
61 sstr_t threadpool; |
61 cxmutstr threadpool; |
62 char *address; |
62 char *address; |
63 int port; |
63 int port; |
64 int nacceptors; |
64 int nacceptors; |
65 WSBool blockingio; |
65 WSBool blockingio; |
66 WSBool ssl; |
66 WSBool ssl; |
67 scstr_t certfile; |
67 cxstring certfile; |
68 scstr_t privkeyfile; |
68 cxstring privkeyfile; |
69 scstr_t chainfile; |
69 cxstring chainfile; |
70 scstr_t disable_proto; |
70 cxstring disable_proto; |
71 }; |
71 }; |
72 |
72 |
73 struct _acceptor { |
73 struct _acceptor { |
74 pthread_t tid; |
74 pthread_t tid; |
75 HttpListener *listener; |
75 HttpListener *listener; |
76 WSBool ipv6; |
76 WSBool ipv6; |
77 }; |
77 }; |
78 |
78 |
79 struct _http_listener { |
79 struct _http_listener { |
80 ServerConfiguration *cfg; |
80 ServerConfiguration *cfg; |
81 sstr_t name; |
81 cxmutstr name; |
82 union vs default_vs; |
82 union vs default_vs; |
83 int port; |
83 int port; |
84 int server_socket; |
84 int server_socket; |
85 int server_socket6; |
85 int server_socket6; |
86 SessionHandler *session_handler; |
86 SessionHandler *session_handler; |