root/src/noit_listener.h

Revision f41090dab0be1c792f9587e2d2930761969ace33, 475 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

more work -- this doesn't do much except add plumbing

  • 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
12 typedef struct {
13   int8_t family;
14   unsigned short port;
15   eventer_func_t dispatch_callback;
16   void *dispatch_closure;
17 } * listener_closure_t;
18
19 int
20 noit_listener(char *host, unsigned short port, int type,
21               int backlog, eventer_func_t handler, void *closure);
22
23 #endif
Note: See TracBrowser for help on using the browser.