summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-26 15:47:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-26 15:47:19 +0000
commit17b5f19bf1476cb22ccb409145600dac7209f823 (patch)
tree54ddfc6c923517600539a25dbc842fae11a48e20 /src/socket.cpp
parent0f907d2b8ba69d80d0f605ecb707efcf1426204a (diff)
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
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}