summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-27 16:19:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-27 16:19:24 +0000
commit0dda9fb325a4d0053652f937ad06e44942357cc1 (patch)
treed62e6895ce65062d0b19a39d2da4a7c3d43ff7b0 /include/socket.h
parent6f4a168a8d127beb3075cbcd07aeb5592aa4bbf8 (diff)
Added /CONNECT
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1968 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h2
1 files changed, 2 insertions, 0 deletions
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);