root/src/noit_listener.h

Revision b7ec8071a69b07dca745fa521b287c9f4ffec06e, 0.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

SSL support that doesn't quite work -- so so so close.

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  */
5
6 #ifndef _NOIT_LISTENER_H
7 #define _NOIT_LISTENER_H
8
9 #include "noit_defines.h"
10 #include "eventer/eventer.h"
11 #include "utils/noit_hash.h"
12
13 typedef struct {
14   noit_hash_table *config;
15   void *service_ctx;
16 } acceptor_closure_t;
17
18 typedef struct {
19   int8_t family;
20   unsigned short port;
21   eventer_func_t dispatch_callback;
22   acceptor_closure_t *dispatch_closure;
23   noit_hash_table *sslconfig;
24 } * listener_closure_t;
25
26 API_EXPORT(void) noit_listener_init();
27
28 API_EXPORT(int)
29 noit_listener(char *host, unsigned short port, int type,
30               int backlog, noit_hash_table *sslconfig,
31               noit_hash_table *config,
32               eventer_func_t handler, void *service_ctx);
33
34 #endif
Note: See TracBrowser for help on using the browser.