From 0dda9fb325a4d0053652f937ad06e44942357cc1 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Nov 2005 16:19:24 +0000 Subject: Added /CONNECT git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1968 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/socket.h b/include/socket.h index 4d4b44587..ace21b78f 100644 --- a/include/socket.h +++ b/include/socket.h @@ -40,6 +40,7 @@ private: bool timeout; pollfd polls; char ibuf[1024]; + std::string IP; sockaddr_in client; sockaddr_in server; socklen_t length; @@ -54,6 +55,7 @@ public: virtual void OnTimeout(); virtual void OnClose(); virtual char* Read(); + std::string GetIP(); virtual int Write(std::string data); virtual int OnIncomingConnection(int newfd, char* ip); void SetState(InspSocketState s); -- cgit v1.2.3