summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-14 21:09:21 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-14 21:09:21 +0000
commitef2f33c700a9f559648089a5314638f9c73d3589 (patch)
tree1734cf5b726b482a6d78c21e115bf55b68dcfa90 /src/socket.cpp
parentb49973db8489f02e10e3475b6a8a199d919a6efa (diff)
downloadlibbu++-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.cpp6
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
41Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) 44Bu::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. */