Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qtcpsocket.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QTCPSOCKET_H
6
#
define
QTCPSOCKET_H
7
8
#
include
<
QtNetwork
/
qtnetworkglobal
.
h
>
9
#
include
<
QtNetwork
/
qabstractsocket
.
h
>
10
#
include
<
QtNetwork
/
qhostaddress
.
h
>
11
#
include
<
QtCore
/
qvariant
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
16
class
QTcpSocketPrivate;
17
18
class
Q_NETWORK_EXPORT
QTcpSocket
:
public
QAbstractSocket
19
{
20
Q_OBJECT
21
public
:
22
explicit
QTcpSocket(QObject *parent =
nullptr
);
23
virtual
~QTcpSocket();
24
25
#
if
QT_VERSION
<
QT_VERSION_CHECK
(
7
,
0
,
0
)
&&
!
defined
(
Q_QDOC
)
26
// ### Qt7: move into QAbstractSocket
27
using
QAbstractSocket::bind;
28
bool
bind(QHostAddress::SpecialAddress addr, quint16 port = 0, BindMode mode = DefaultForPlatform)
29
{
return
bind(QHostAddress(addr), port, mode); }
30
#
endif
31
32
protected
:
33
QTcpSocket(QTcpSocketPrivate &dd, QObject *parent =
nullptr
);
34
QTcpSocket(QAbstractSocket::SocketType socketType, QTcpSocketPrivate &dd,
35
QObject *parent =
nullptr
);
36
37
private
:
38
Q_DISABLE_COPY_MOVE(QTcpSocket)
39
Q_DECLARE_PRIVATE(QTcpSocket)
40
};
41
42
QT_END_NAMESPACE
43
44
#
endif
// QTCPSOCKET_H
QTcpSocket
The QTcpSocket class provides a TCP socket.
Definition
qtcpsocket.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
network
socket
qtcpsocket.h
Generated on
for Qt by
1.18.0