QTcpSocket 类提供 TCP 套接字。 更多...
继承 QAbstractSocket .
Inherited by QSslSocket .
QTcpSocket 类提供 TCP 套接字。
TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. It is especially well suited for continuous transmission of data.
QTcpSocket 是方便的子类化 QAbstractSocket that allows you to establish a TCP connection and transfer streams of data. See the QAbstractSocket 文档编制 了解细节。
注意: TCP 套接字无法被打开在 QIODevice.Unbuffered 模式。
On Symbian, processes which use this class must have the NetworkServices platform security capability. If the client process lacks this capability, it will result in a panic.
Platform security capabilities are added via the TARGET.CAPABILITY qmake variable.
parent argument, if not None, causes self to be owned by Qt instead of PyQt.
创建 QTcpSocket object in state UnconnectedState .
parent 被传递给 QObject 构造函数。
另请参阅 socketType ().