src/server/daemon/httplistener.h

changeset 449
a28a5ccc894b
parent 446
240ed6f945ca
child 492
07452a54a22b
equal deleted inserted replaced
448:02b003f7560c 449:a28a5ccc894b
55 typedef struct _http_ssl HttpSSL; 55 typedef struct _http_ssl HttpSSL;
56 56
57 typedef struct _ws_socket WSSocket; 57 typedef struct _ws_socket WSSocket;
58 58
59 59
60
61
62 union vs { 60 union vs {
63 VirtualServer *vs; 61 VirtualServer *vs;
64 char *vs_name; 62 char *vs_name;
65 }; 63 };
66 struct _listener_config { 64 struct _listener_config {
98 threadpool_t *threadpool; 96 threadpool_t *threadpool;
99 HttpListener *next; 97 HttpListener *next;
100 Acceptor **acceptors; 98 Acceptor **acceptors;
101 Acceptor **acceptors6; 99 Acceptor **acceptors6;
102 int nacceptors; 100 int nacceptors;
101 uint32_t nacceptors_running;
103 int running; 102 int running;
104 HttpSSL *ssl; 103 HttpSSL *ssl;
104
105 pthread_mutex_t shutdown_mutex;
106 pthread_cond_t shutdown_cond;
107 WSBool shutdown;
105 }; 108 };
106 109
107 struct _http_ssl { 110 struct _http_ssl {
108 /* 111 /*
109 unsigned char *cert; 112 unsigned char *cert;
141 int http_listener_global_init(void); 144 int http_listener_global_init(void);
142 145
143 int start_all_listener(); 146 int start_all_listener();
144 147
145 HttpListener* http_listener_create(ListenerConfig *conf); 148 HttpListener* http_listener_create(ListenerConfig *conf);
149
150 void http_listener_destroy(HttpListener *listener);
146 151
147 int http_listener_start(HttpListener *listener); 152 int http_listener_start(HttpListener *listener);
148 153
149 154
150 /* 155 /*

mercurial