The QTcpSocket class provides a TCP socket. More...
|qmake:||QT += network|
Note: All functions in this class are reentrant.
|QTcpSocket(QObject * parent = 0)|
- 37 public functions inherited from QAbstractSocket
- 33 public functions inherited from QIODevice
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 6 signals inherited from QAbstractSocket
- 4 signals inherited from QIODevice
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 10 protected functions inherited from QAbstractSocket
- 5 protected functions inherited from QIODevice
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
The QTcpSocket class provides a TCP socket.
TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. It is especially well suited for continuous transmission of data.
Note: TCP sockets cannot be opened in QIODevice::Unbuffered mode.
See also QTcpServer, QUdpSocket, 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().
Destroys the socket, closing the connection if necessary.
See also close().