From dae120b6c2b10f8fc2e77bfc4d69d33820faf5bc Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:04:50 +0000 Subject: Utilisateur : Fcolin Date : 16/06/00 Heure : 10:40 Archivé dans $/Ivy Commentaire: Init dll socket dans DLLMain (vss 2) --- Bus/Ivy/ThreadedSocket.cxx | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'Bus/Ivy') diff --git a/Bus/Ivy/ThreadedSocket.cxx b/Bus/Ivy/ThreadedSocket.cxx index f00e6f5..64df41e 100644 --- a/Bus/Ivy/ThreadedSocket.cxx +++ b/Bus/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; -- cgit v1.1