1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
// Copyright (C) 2016 Alex Trotsenko <alex1973tr@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CHATPROVIDER_H
#define CHATPROVIDER_H
#include "provider.h"
class ChatProvider : public Provider
{
Q_OBJECT
public:
explicit ChatProvider(QObject *parent = nullptr);
void readDatagram(QSctpSocket &from, const QByteArray &ba) override;
void newConnection(QSctpSocket &client) override;
void clientDisconnected(QSctpSocket &client) override;
};
#endif
|