summaryrefslogtreecommitdiff
path: root/Bus/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:04:50 +0000
committerfcolin2007-02-01 13:04:50 +0000
commitdae120b6c2b10f8fc2e77bfc4d69d33820faf5bc (patch)
tree0741f33a8c3afff9ab6be2cb73bfbc510dc94c1d /Bus/Ivy
parentdc52b9a4a097ee967551db4e2800f497ecc3cde7 (diff)
downloadivy-cplusplus-dae120b6c2b10f8fc2e77bfc4d69d33820faf5bc.zip
ivy-cplusplus-dae120b6c2b10f8fc2e77bfc4d69d33820faf5bc.tar.gz
ivy-cplusplus-dae120b6c2b10f8fc2e77bfc4d69d33820faf5bc.tar.bz2
ivy-cplusplus-dae120b6c2b10f8fc2e77bfc4d69d33820faf5bc.tar.xz
Utilisateur : Fcolin Date : 16/06/00 Heure : 10:40 Archivé dans $/Ivy Commentaire: Init dll socket dans DLLMain (vss 2)
Diffstat (limited to 'Bus/Ivy')
-rw-r--r--Bus/Ivy/ThreadedSocket.cxx22
1 files changed, 0 insertions, 22 deletions
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;