From ef2f33c700a9f559648089a5314638f9c73d3589 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Jan 2009 21:09:21 +0000 Subject: Gettin' closer. --- src/socket.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 3870a59..3458b45 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -35,11 +35,17 @@ Bu::Socket::Socket( int nSocket ) : nSocket( nSocket ), bActive( true ) { +#ifdef WIN32 + DynamicWinsock32::Winsock2::getInstance(); +#endif setAddress(); } Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) { +#ifdef WIN32 + DynamicWinsock32::Winsock2::getInstance(); +#endif bActive = false; /* Create the socket. */ -- cgit v1.2.3