diff options
author | David <david@xagasoft.com> | 2011-02-21 19:09:49 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2011-02-21 19:09:49 +0000 |
commit | 66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e (patch) | |
tree | 6c9b864606c486ffd8adb3b51cd39167788421bf /src | |
parent | ba64111dabe60f0cce109831cae11c37ab42b249 (diff) | |
download | libbu++-66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e.tar.gz libbu++-66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e.tar.bz2 libbu++-66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e.tar.xz libbu++-66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e.zip |
david - udp not building on windows for now && fixed a windows tcpsocket thing
Diffstat (limited to 'src')
-rw-r--r-- | src/tcpsocket.cpp | 2 | ||||
-rw-r--r-- | src/udpsocket.cpp | 4 | ||||
-rw-r--r-- | src/udpsocket.h | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/tcpsocket.cpp b/src/tcpsocket.cpp index 52dfc5c..105529a 100644 --- a/src/tcpsocket.cpp +++ b/src/tcpsocket.cpp | |||
@@ -401,7 +401,7 @@ void Bu::TcpSocket::setBlocking( bool bBlocking ) | |||
401 | fcntl( nTcpSocket, F_SETFL, fcntl( nTcpSocket, F_GETFL, 0 ) | O_NONBLOCK ); | 401 | fcntl( nTcpSocket, F_SETFL, fcntl( nTcpSocket, F_GETFL, 0 ) | O_NONBLOCK ); |
402 | } | 402 | } |
403 | #else | 403 | #else |
404 | u_Bu::size iMode; | 404 | u_long iMode; |
405 | if( bBlocking ) | 405 | if( bBlocking ) |
406 | iMode = 0; | 406 | iMode = 0; |
407 | else | 407 | else |
diff --git a/src/udpsocket.cpp b/src/udpsocket.cpp index 91e04c1..b577302 100644 --- a/src/udpsocket.cpp +++ b/src/udpsocket.cpp | |||
@@ -5,6 +5,8 @@ | |||
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifndef WIN32 //not on windows | ||
9 | |||
8 | #include "bu/udpsocket.h" | 10 | #include "bu/udpsocket.h" |
9 | 11 | ||
10 | #include "bu/sio.h" | 12 | #include "bu/sio.h" |
@@ -238,3 +240,5 @@ Bu::String Bu::UdpSocket::getLocation() const | |||
238 | throw Bu::UnsupportedException(); | 240 | throw Bu::UnsupportedException(); |
239 | } | 241 | } |
240 | 242 | ||
243 | #endif | ||
244 | |||
diff --git a/src/udpsocket.h b/src/udpsocket.h index 8fe114d..f228f08 100644 --- a/src/udpsocket.h +++ b/src/udpsocket.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
6 | */ | 6 | */ |
7 | #ifndef WIN32 //not on windows | ||
7 | 8 | ||
8 | #ifndef BU_UDP_SOCKET_H | 9 | #ifndef BU_UDP_SOCKET_H |
9 | #define BU_UDP_SOCKET_H | 10 | #define BU_UDP_SOCKET_H |
@@ -79,3 +80,5 @@ namespace Bu | |||
79 | }; | 80 | }; |
80 | 81 | ||
81 | #endif | 82 | #endif |
83 | |||
84 | #endif | ||