summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-02 20:35:44 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-02 20:35:44 +0000
commitbd865cee5f89116c1f054cd0e5c275e97c2d0a9b (patch)
treee3e27a6b9bd5e2be6150088495c91fc91786ad9d /src/socket.cpp
parent62fb9ee2ff8b1d9590c92a703d6506de6aa8df52 (diff)
downloadlibbu++-bd865cee5f89116c1f054cd0e5c275e97c2d0a9b.tar.gz
libbu++-bd865cee5f89116c1f054cd0e5c275e97c2d0a9b.tar.bz2
libbu++-bd865cee5f89116c1f054cd0e5c275e97c2d0a9b.tar.xz
libbu++-bd865cee5f89116c1f054cd0e5c275e97c2d0a9b.zip
The list has an isEmpty funcion, and the socket may have a new read function
soon, check it out...later...
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 5a3097c..e567061 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -174,6 +174,10 @@ size_t Bu::Socket::read( void *pBuf, size_t nBytes )
174 return nRead; 174 return nRead;
175} 175}
176 176
177//size_t Bu::Socket::read( void *pBuf, size_t nBytes, uint32_t nTimeout )
178//{
179//}
180
177size_t Bu::Socket::write( const void *pBuf, size_t nBytes ) 181size_t Bu::Socket::write( const void *pBuf, size_t nBytes )
178{ 182{
179 int nWrote = TEMP_FAILURE_RETRY( ::write( nSocket, pBuf, nBytes ) ); 183 int nWrote = TEMP_FAILURE_RETRY( ::write( nSocket, pBuf, nBytes ) );