Public Member Functions | Public Attributes | Protected Attributes | Friends

TcpSocket Class Reference

Inheritance diagram for TcpSocket:
CallBacker

List of all members.

Public Member Functions

 TcpSocket ()
 TcpSocket (QTcpSocket *, const int)
 ~TcpSocket ()
void connectToHost (const char *host, int port)
void disconnectFromHost ()
void abort ()
int write (const char *)
int write (const IOPar &)
void read (BufferString &) const
void read (IOPar &) const
const int getID () const
const char * errorMsg () const
bool waitForConnected (int msec)
 Useful when no event loop available.
bool waitForReadyRead (int msec)
 Useful when no event loop available.

Public Attributes

Notifier< TcpSocketconnected
Notifier< TcpSocketdisconnected
Notifier< TcpSockethostFound
Notifier< TcpSocketreadyRead
Notifier< TcpSocketerror
Notifier< TcpSocketstateChanged

Protected Attributes

QTcpSocket * qtcpsocket_
QTcpSocketCommcomm_
BufferString errmsg_
const int id_

Friends

class QTcpSocketComm

Constructor & Destructor Documentation

TcpSocket::TcpSocket (  ) 
TcpSocket::TcpSocket ( QTcpSocket *  ,
const   int 
)
TcpSocket::~TcpSocket (  ) 

Member Function Documentation

void TcpSocket::abort (  ) 
void TcpSocket::connectToHost ( const char *  host,
int  port 
)
void TcpSocket::disconnectFromHost (  ) 
const char* TcpSocket::errorMsg (  )  const
const int TcpSocket::getID (  )  const [inline]
void TcpSocket::read ( IOPar  )  const
void TcpSocket::read ( BufferString  )  const
bool TcpSocket::waitForConnected ( int  msec  ) 

Useful when no event loop available.

bool TcpSocket::waitForReadyRead ( int  msec  ) 

Useful when no event loop available.

int TcpSocket::write ( const IOPar  ) 
int TcpSocket::write ( const char *   ) 

Friends And Related Function Documentation

friend class QTcpSocketComm [friend]

Member Data Documentation

BufferString TcpSocket::errmsg_ [mutable, protected]
const int TcpSocket::id_ [protected]
QTcpSocket* TcpSocket::qtcpsocket_ [protected]