18class Q_NETWORK_EXPORT
QTcpSocket :
public QAbstractSocket
22 explicit QTcpSocket(QObject *parent =
nullptr);
23 virtual ~QTcpSocket();
25#if QT_VERSION < QT_VERSION_CHECK(7
,0
,0
) && !defined(Q_QDOC)
27 using QAbstractSocket::bind;
28 bool bind(QHostAddress::SpecialAddress addr, quint16 port = 0, BindMode mode = DefaultForPlatform)
29 {
return bind(QHostAddress(addr), port, mode); }
33 QTcpSocket(QTcpSocketPrivate &dd, QObject *parent =
nullptr);
34 QTcpSocket(QAbstractSocket::SocketType socketType, QTcpSocketPrivate &dd,
35 QObject *parent =
nullptr);
38 Q_DISABLE_COPY_MOVE(QTcpSocket)
39 Q_DECLARE_PRIVATE(QTcpSocket)