diff options
Diffstat (limited to 'Ivy')
-rw-r--r-- | Ivy/ThreadedSocket.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Ivy/ThreadedSocket.cxx b/Ivy/ThreadedSocket.cxx index f00e6f5..64df41e 100644 --- a/Ivy/ThreadedSocket.cxx +++ b/Ivy/ThreadedSocket.cxx @@ -30,34 +30,12 @@ bool CThreadedSocketException::GetErrorMessage(string & lpstrError, UINT nMaxErr return true;
}
-//IMPLEMENT_DYNAMIC(CThreadedSocket, CObject)
-
-bool CThreadedSocket::Initialized = false;
-
-void CThreadedSocket::Init()
-{
- WORD wVersionRequested;
- WSADATA wsaData;
- int err;
-
- wVersionRequested = MAKEWORD( 2, 2 );
-
- err = WSAStartup( wVersionRequested, &wsaData );
- if ( err != 0 ) {
- /* Tell the user that we could not find a usable */
- /* WinSock DLL. */
- return;
- }
- Initialized = true;
-}
-
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CThreadedSocket::CThreadedSocket()
{
- if ( ! Initialized ) Init();
m_hSocket = INVALID_SOCKET;
h_thread = NULL;
|