diff options
author | fcolin | 2007-02-01 13:04:50 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:04:50 +0000 |
commit | ff43d6adcef7ed20cf896553ae050f9ee70da412 (patch) | |
tree | 71d6965563d4793f137d2cb045047f4a849b8688 | |
parent | d42a6937e7b9eba39de3c7d8edc975499d1f43ff (diff) | |
download | ivy-cplusplus-ff43d6adcef7ed20cf896553ae050f9ee70da412.zip ivy-cplusplus-ff43d6adcef7ed20cf896553ae050f9ee70da412.tar.gz ivy-cplusplus-ff43d6adcef7ed20cf896553ae050f9ee70da412.tar.bz2 ivy-cplusplus-ff43d6adcef7ed20cf896553ae050f9ee70da412.tar.xz |
Utilisateur : Fcolin Date : 16/06/00 Heure : 10:40 Archivé dans $/Ivy Commentaire: Init dll socket dans DLLMain (vss 2)
-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;
|