diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 03:22:58 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-24 03:22:58 +0000 |
| commit | 0975d66d2f06603f5e4016440b333aac88e2958a (patch) | |
| tree | cd3767fb74c2475fd78bca9ff2d3ba825dd329f4 /src/socket.cpp | |
| parent | 17df4c2b9616c29865b0d893cc797d4938a660a2 (diff) | |
| download | libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.gz libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.bz2 libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.xz libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.zip | |
Ok, now all the warnings are gone (except for those coming from nids, but that's
ok, nids is still in flux, they'll be gone soon).
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index f68fc37..651a2e1 100644 --- a/src/socket.cpp +++ b/src/socket.cpp | |||
| @@ -260,17 +260,17 @@ long Bu::Socket::tell() | |||
| 260 | throw UnsupportedException(); | 260 | throw UnsupportedException(); |
| 261 | } | 261 | } |
| 262 | 262 | ||
| 263 | void Bu::Socket::seek( long offset ) | 263 | void Bu::Socket::seek( long ) |
| 264 | { | 264 | { |
| 265 | throw UnsupportedException(); | 265 | throw UnsupportedException(); |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | void Bu::Socket::setPos( long pos ) | 268 | void Bu::Socket::setPos( long ) |
| 269 | { | 269 | { |
| 270 | throw UnsupportedException(); | 270 | throw UnsupportedException(); |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | void Bu::Socket::setPosEnd( long pos ) | 273 | void Bu::Socket::setPosEnd( long ) |
| 274 | { | 274 | { |
| 275 | throw UnsupportedException(); | 275 | throw UnsupportedException(); |
| 276 | } | 276 | } |
| @@ -336,6 +336,14 @@ bool Bu::Socket::isBlocking() | |||
| 336 | 336 | ||
| 337 | void Bu::Socket::setBlocking( bool bBlocking ) | 337 | void Bu::Socket::setBlocking( bool bBlocking ) |
| 338 | { | 338 | { |
| 339 | if( bBlocking ) | ||
| 340 | { | ||
| 341 | fcntl( nSocket, F_SETFL, fcntl( nSocket, F_GETFL, 0 ) & ~O_NONBLOCK ); | ||
| 342 | } | ||
| 343 | else | ||
| 344 | { | ||
| 345 | fcntl( nSocket, F_SETFL, fcntl( nSocket, F_GETFL, 0 ) | O_NONBLOCK ); | ||
| 346 | } | ||
| 339 | } | 347 | } |
| 340 | 348 | ||
| 341 | void Bu::Socket::flush() | 349 | void Bu::Socket::flush() |
