The QTcpSocket class provides a TCP socket. More...

 #include <QTcpSocket>

Inherits: QAbstractSocket.

Inherited by: QSslSocket.

Note: All functions in this class are reentrant.

Public Functions

QTcpSocket ( QObject * parent = 0 )
virtual ~QTcpSocket ()

Additional Inherited Members

See also QTcpServer, QUdpSocket, QFtp, QNetworkAccessManager, Fortune Server Example, Fortune Client Example, Threaded Fortune Server Example, Blocking Fortune Client Example, Loopback Example, and Torrent Example.

Member Function Documentation

QTcpSocket::QTcpSocket ( QObject * parent = 0 )

Creates a QTcpSocket object in state UnconnectedState.

parent is passed on to the QObject constructor.

See also socketType().

QTcpSocket::~QTcpSocket () [virtual]

Destroys the socket, closing the connection if necessary.

See also close().

comments powered by Disqus