first chatcleaner steps (simple badword and textflood check works on port 7777)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef CLEANERSERVER_H
|
||||
#define CLEANERSERVER_H
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtNetwork>
|
||||
|
||||
class MessageFilter;
|
||||
|
||||
class CleanerServer: public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CleanerServer();
|
||||
~CleanerServer();
|
||||
|
||||
private slots:
|
||||
void newCon();
|
||||
void onRead();
|
||||
|
||||
private:
|
||||
QTcpServer *tcpServer;
|
||||
QTcpSocket *tcpSocket;
|
||||
MessageFilter *myMessageFilter;
|
||||
|
||||
};
|
||||
|
||||
#endif // CLEANERSERVER_H
|
||||
Reference in New Issue
Block a user