diff options
Diffstat (limited to 'acceptor.h')
-rw-r--r-- | acceptor.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/acceptor.h b/acceptor.h new file mode 100644 index 0000000..8432ef6 --- /dev/null +++ b/acceptor.h @@ -0,0 +1,14 @@ +#include "tsocket.h" +#include "eventloop.h" + +#ifndef __ACCEPTOR_H +#define __ACCEPTOR_H + +struct connAcceptor { + struct tsocket *sock; + struct eventLoop *el; +}; + +struct event *connAcceptorNewEvent(struct tsocket *sock, struct eventLoop *el); + +#endif |