diff options
Diffstat (limited to '')
| -rw-r--r-- | src/socket.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 ) : | |||
| 35 | nSocket( nSocket ), | 35 | nSocket( nSocket ), |
| 36 | bActive( true ) | 36 | bActive( true ) |
| 37 | { | 37 | { |
| 38 | #ifdef WIN32 | ||
| 39 | DynamicWinsock32::Winsock2::getInstance(); | ||
| 40 | #endif | ||
| 38 | setAddress(); | 41 | setAddress(); |
| 39 | } | 42 | } |
| 40 | 43 | ||
| 41 | Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) | 44 | Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) |
| 42 | { | 45 | { |
| 46 | #ifdef WIN32 | ||
| 47 | DynamicWinsock32::Winsock2::getInstance(); | ||
| 48 | #endif | ||
| 43 | bActive = false; | 49 | bActive = false; |
| 44 | 50 | ||
| 45 | /* Create the socket. */ | 51 | /* Create the socket. */ |
