17 #include "connectiontcpclient.h"
20 #include "mutexguard.h"
26 #if ( !defined( _WIN32 ) && !defined( _WIN32_WCE ) ) || defined( __SYMBIAN32__ )
27 # include <sys/types.h>
28 # include <sys/socket.h>
29 # include <sys/select.h>
31 #elif ( defined( _WIN32 ) || defined( _WIN32_WCE ) ) && !defined( __SYMBIAN32__ )
42 const std::string& server,
int port )
48 const std::string& server,
int port )
105 "Unknown error condition" );
125 if( m_cancel || m_socket < 0 )
131 if( !dataAvailable( timeout ) )
137 int size =
static_cast<int>(
::recv( m_socket, m_buf, m_bufsize, 0 ) );
139 m_totalBytesIn += size;