From e381b06561228aaea752deda20a62c6dc99a560e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Aug 2006 01:08:14 +0000 Subject: EventHandler class, an abstraction for raw i/o git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspsocket.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/inspsocket.h') diff --git a/include/inspsocket.h b/include/inspsocket.h index ddb0baedb..3791aa3e0 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -23,6 +23,7 @@ #include "dns.h" #include "inspircd_config.h" #include "socket.h" +#include "inspsocket.h" /** * States which a socket may be in @@ -53,18 +54,13 @@ using irc::sockets::insp_aton; * and use the InspSocket constructors to establish connections * and bindings. */ -class InspSocket : public Extensible +class InspSocket : public EventHandler { public: InspIRCd* Instance; std::deque outbuffer; - /** - * The file descriptor of this socket - */ - int fd; - /** * The hostname connected to */ @@ -365,6 +361,10 @@ class InspSocket : public Extensible * memory reclaimed. */ void MarkAsClosed(); + + void HandleEvent(EventType et); + + bool Readable(); }; #endif -- cgit v1.2.3