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 }; |
77 }; |
77 |
78 |
78 struct _http_listener { |
79 struct _http_listener { |
79 ServerConfiguration *cfg; |
80 ServerConfiguration *cfg; |
80 sstr_t name; |
81 sstr_t name; |
81 union vs default_vs; |
82 union vs default_vs; |
82 int port; |
83 int port; |
83 int server_socket; |
84 int server_socket; |
|
85 int server_socket6; |
84 SessionHandler *session_handler; |
86 SessionHandler *session_handler; |
85 threadpool_t *threadpool; |
87 threadpool_t *threadpool; |
86 HttpListener *next; |
88 HttpListener *next; |
87 Acceptor **acceptors; |
89 Acceptor **acceptors; |
|
90 Acceptor **acceptors6; |
88 int nacceptors; |
91 int nacceptors; |
89 int running; |
92 int running; |
90 HttpSSL *ssl; |
93 HttpSSL *ssl; |
91 uint32_t ref; // reference counter |
94 uint32_t ref; // reference counter |
92 }; |
95 }; |