QTcpSocket class provides a TCP socket. More…
Inherited by: QSslSocket
bind(addr[, port=0[, mode=QAbstractSocket.BindFlag.DefaultForPlatform]])
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. It is especially well suited for continuous transmission of data.
QTcpSocket is a convenience subclass of
QAbstractSocket that allows you to establish a TCP connection and transfer streams of data. See the
QAbstractSocket documentation for details.
TCP sockets cannot be opened in QIODevice::Unbuffered mode.
QNetworkAccessManager Fortune Server Fortune Client Threaded Fortune Server Blocking Fortune Client Loopback Example Torrent Example
- class PySide6.QtNetwork.QTcpSocket([parent=None])#
QTcpSocket object in state
parent is passed on to the
- PySide6.QtNetwork.QTcpSocket.bind(addr[, port=0[, mode=QAbstractSocket.BindFlag.DefaultForPlatform]])#
- Return type: