diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-14 21:09:21 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-14 21:09:21 +0000 |
commit | ef2f33c700a9f559648089a5314638f9c73d3589 (patch) | |
tree | 1734cf5b726b482a6d78c21e115bf55b68dcfa90 /src/socket.cpp | |
parent | b49973db8489f02e10e3475b6a8a199d919a6efa (diff) | |
download | libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.tar.gz libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.tar.bz2 libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.tar.xz libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.zip |
Gettin' closer.
Diffstat (limited to 'src/socket.cpp')
-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. */ |