qt6windows7/examples/network/multistreamserver/chatprovider.h
2023-10-29 23:33:08 +01:00

21 lines
512 B
C++

// 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