13   struct TcpSocketDetail;
    33     bool open(
const char *host, 
unsigned short port);
    42     bool isConnected() 
const;
    46     void setNoDelay(
bool noDelay);
    58     void setReadTimeout(
unsigned timeoutMs);
    63     unsigned readTimeout() 
const;
    67     void setIndefiniteReadTimeout();
    73     void setWriteTimeout(
unsigned timeoutMs);
    78     unsigned writeTimeout() 
const;
    82     void setIndefiniteWriteTimeout();
    86     void setReadBufferSize(
int bufferSize);
    89     int readBufferSize() 
const;
    93     void setSendBufferSize(
int bufferSize);
    96     int sendBufferSize() 
const;
   105     int read(
char *buffer, 
int bufferLength) 
const;
   108     inline int read(
unsigned char *buffer, 
int bufferLength)
 const { 
return read((
char*)buffer, bufferLength); }
   115     int readAvailable(
char *buffer, 
int bufferLength) 
const;
   125     int write(
const char *buffer, 
int bufferLength) 
const;
   128     inline int write(
const unsigned char *buffer, 
int bufferLength)
 const { 
return write((
const char*)buffer, bufferLength); }
   130     unsigned short port() 
const;
   137 #endif // TCPSOCKET_H_ int readAvailable(unsigned char *buffer, int bufferLength) const
Definition: 3estcpsocket.h:118
 
int write(const unsigned char *buffer, int bufferLength) const
Definition: 3estcpsocket.h:128
 
Definition: 3esbounds.h:13
 
int read(unsigned char *buffer, int bufferLength) const
Definition: 3estcpsocket.h:108
 
static const unsigned IndefiniteTimeout
Value used to signify an indefinite timeout. 
Definition: 3estcpsocket.h:20
 
A TCP/IP communication socket implementation. 
Definition: 3estcpsocket.h:16
 
Definition: qt/3estcpdetail.h:15