From 17b5f19bf1476cb22ccb409145600dac7209f823 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 26 Nov 2005 15:47:19 +0000 Subject: Added start of spanning tree system TEST MODULE, tested outbound connections Outbound connections function OK. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1956 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index cb019a3c2..48a58db0b 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -115,6 +115,7 @@ char* InspSocket::Read() } else { + log(DEBUG,"EOF or error on socket"); return NULL; } } @@ -166,6 +167,7 @@ bool InspSocket::Poll() switch (this->state) { case I_CONNECTING: + this->SetState(I_CONNECTED); return this->OnConnected(); break; case I_LISTENING: @@ -184,6 +186,7 @@ bool InspSocket::Poll() void InspSocket::SetState(InspSocketState s) { + log(DEBUG,"Socket state change"); this->state = s; } -- cgit v1.3.1-10-gc9f91