summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/server/SocketStream.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/server/SocketStream.cpp b/lib/server/SocketStream.cpp
index e09a7f1e..d4a531ac 100644
--- a/lib/server/SocketStream.cpp
+++ b/lib/server/SocketStream.cpp
@@ -127,20 +127,23 @@ void SocketStream::Attach(int socket)
THROW_EXCEPTION(ServerException, SocketAlreadyOpen)
}
- mSocketHandle = socket;
ResetCounters();
+
+ mSocketHandle = socket;
+ mReadClosed = false;
+ mWriteClosed = false;
}
// --------------------------------------------------------------------------
//
// Function
-// Name: SocketStream::Open(int, char *, int)
+// Name: SocketStream::Open(Socket::Type, char *, int)
// Purpose: Opens a connection to a listening socket (INET or UNIX)
// Created: 2003/07/31
//
// --------------------------------------------------------------------------
-void SocketStream::Open(int Type, const std::string& rName, int Port)
+void SocketStream::Open(Socket::Type Type, const std::string& rName, int Port)
{
if(mSocketHandle != INVALID_SOCKET_VALUE)
{
@@ -184,6 +187,9 @@ void SocketStream::Open(int Type, const std::string& rName, int Port)
}
ResetCounters();
+
+ mReadClosed = false;
+ mWriteClosed = false;
}
// --------------------------------------------------------------------------