Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtcpserver_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Alex Trotsenko <alex1973tr@gmail.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QTCPSERVER_P_H
6#define QTCPSERVER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtNetwork/private/qtnetworkglobal_p.h>
20#include "QtNetwork/qtcpserver.h"
21#include "private/qobject_p.h"
22#include "private/qabstractsocketengine_p.h"
23#include "QtNetwork/qabstractsocket.h"
24#include "qnetworkproxy.h"
25#include "QtCore/qlist.h"
26#include "qhostaddress.h"
27
29
30class Q_NETWORK_EXPORT QTcpServerPrivate : public QObjectPrivate,
32{
33 Q_DECLARE_PUBLIC(QTcpServer)
34public:
37
38 QList<QTcpSocket *> pendingConnections;
39
42
46
49
50 int listenBacklog = 50;
52
53#ifndef QT_NO_NETWORKPROXY
55 QNetworkProxy resolveProxy(const QHostAddress &address, quint16 port);
56#endif
57
58 virtual void configureCreatedSocket();
59 virtual int totalPendingConnections() const;
60
61 // from QAbstractSocketEngineReceiver
62 void readNotification() override;
63 void closeNotification() override { readNotification(); }
64 void writeNotification() override {}
65 void exceptionNotification() override {}
66 void connectionNotification() override {}
67#ifndef QT_NO_NETWORKPROXY
69#endif
70
71};
72
74
75#endif // QTCPSERVER_P_H
SocketState
This enum describes the different states in which a socket can be.
SocketError
This enum describes the socket errors that can occur.
SocketType
This enum describes the transport layer protocol.
The QAuthenticator class provides an authentication object.
The QHostAddress class provides an IP address.
The QNetworkProxy class provides a network layer proxy.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QAbstractSocket::SocketError serverSocketError
QAbstractSocketEngine * socketEngine
QString serverSocketErrorString
void proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *) override
QHostAddress address
QNetworkProxy proxy
QAbstractSocket::SocketType socketType
void connectionNotification() override
void closeNotification() override
void exceptionNotification() override
void writeNotification() override
QList< QTcpSocket * > pendingConnections
QAbstractSocket::SocketState state
The QTcpServer class provides a TCP-based server.
Definition qtcpserver.h:22
Combined button and popup list for selecting options.
EGLOutputPortEXT port
GLuint GLuint64EXT address
unsigned short quint16
Definition qtypes.h:48