From 0457119acb36b89b6f2f4534fe8ad94b19540bbd Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 2 Dec 2022 12:18:57 +0800 Subject: Refactor --- acceptor.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 acceptor.h (limited to 'acceptor.h') 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 -- cgit v1.2.3