diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-01-03 08:56:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-01-03 08:56:13 +0000 |
commit | f5257ef4a8f2b9e2edb944a497e37f78a22fea44 (patch) | |
tree | 37e44509756ab5a961897aa9de7b53d07bad1b21 /lib/server/SocketStream.h | |
parent | 3d7966138559f727a03a4b7c901508654125b7cf (diff) |
Change use of int to identify a socket type to the proper enum.
Diffstat (limited to 'lib/server/SocketStream.h')
-rw-r--r-- | lib/server/SocketStream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/server/SocketStream.h b/lib/server/SocketStream.h index fa81cfd9..2b582f21 100644 --- a/lib/server/SocketStream.h +++ b/lib/server/SocketStream.h @@ -11,6 +11,7 @@ #define SOCKETSTREAM__H #include "IOStream.h" +#include "Socket.h" #ifdef WIN32 typedef SOCKET tOSSocketHandle; @@ -36,7 +37,7 @@ public: SocketStream(const SocketStream &rToCopy); ~SocketStream(); - void Open(int Type, const std::string& rName, int Port = 0); + void Open(Socket::Type Type, const std::string& rName, int Port = 0); void Attach(int socket); virtual int Read(void *pBuffer, int NBytes, int Timeout = IOStream::TimeOutInfinite); |