aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/socket.cpp14
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
263void Bu::Socket::seek( long offset ) 263void Bu::Socket::seek( long )
264{ 264{
265 throw UnsupportedException(); 265 throw UnsupportedException();
266} 266}
267 267
268void Bu::Socket::setPos( long pos ) 268void Bu::Socket::setPos( long )
269{ 269{
270 throw UnsupportedException(); 270 throw UnsupportedException();
271} 271}
272 272
273void Bu::Socket::setPosEnd( long pos ) 273void Bu::Socket::setPosEnd( long )
274{ 274{
275 throw UnsupportedException(); 275 throw UnsupportedException();
276} 276}
@@ -336,6 +336,14 @@ bool Bu::Socket::isBlocking()
336 336
337void Bu::Socket::setBlocking( bool bBlocking ) 337void 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
341void Bu::Socket::flush() 349void Bu::Socket::flush()