|qmake:||QT += network|
Note: All functions in this class are reentrant.
- 37 public functions inherited from QAbstractSocket
- 43 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
- 6 signals inherited from QIODevice
- 2 signals inherited from QObject
- 11 static public members inherited from QObject
- 10 protected functions inherited from QAbstractSocket
- 5 protected functions inherited from QIODevice
- 9 protected functions 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 = Q_NULLPTR)
Creates a QTcpSocket object in state
parent is passed on to the QObject constructor.
See also socketType().
Destroys the socket, closing the connection if necessary.
See also close().
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.