blob: 0557de30de2caa17715c1f87a1a01d8708527b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SERVER_H
#define SERVER_H
#include <QTcpServer>
class Connection;
class Server : public QTcpServer
{
Q_OBJECT
public:
explicit Server(QObject *parent = nullptr);
signals:
void newConnection(Connection *connection);
protected:
void incomingConnection(qintptr socketDescriptor) override;
};
#endif
|