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/connection.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'include/connection.h') diff --git a/include/connection.h b/include/connection.h index bb9f7a580..55d6204a1 100644 --- a/include/connection.h +++ b/include/connection.h @@ -20,18 +20,14 @@ #include #include "inspircd_config.h" #include "base.h" +#include "socketengine.h" /** connection is the base class of userrec, and holds basic user properties. * This can be extended for holding other user-like objects in the future. */ -class connection : public Extensible +class connection : public EventHandler { public: - /** File descriptor of the connection. - * For a remote connection, this will have a negative value. - */ - int fd; - /** Hostname of connection. * This should be valid as per RFC1035. */ @@ -80,13 +76,6 @@ class connection : public Extensible /** Used by PING checking code */ time_t nping; - - /** Default constructor, creates the user as remote. - */ - connection() - { - this->fd = -1; - } }; -- cgit v1.2.3