summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 01:08:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 01:08:14 +0000
commite381b06561228aaea752deda20a62c6dc99a560e (patch)
tree2119fe8bc8895597261935f389004e3c6bafe6a8 /include/inspsocket.h
parent3c82d2d767186dd6d386dbbe08219ad8612e299e (diff)
EventHandler class, an abstraction for raw i/o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h12
1 files changed, 6 insertions, 6 deletions
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,7 +54,7 @@ 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;
@@ -61,11 +62,6 @@ class InspSocket : public Extensible
std::deque<std::string> outbuffer;
/**
- * The file descriptor of this socket
- */
- int fd;
-
- /**
* The hostname connected to
*/
char host[MAXBUF];
@@ -365,6 +361,10 @@ class InspSocket : public Extensible
* memory reclaimed.
*/
void MarkAsClosed();
+
+ void HandleEvent(EventType et);
+
+ bool Readable();
};
#endif