mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 15:45:59 +01:00
2018-03-11 Fred Gleason <fredg@paravelsystems.com>
* Converted ripcd(8) to use RDApplication. * Documented a 'Notification' message type in 'docs/apis/notification.xml'. * Added an 'RDMulticaster' class. * Added an 'mcast_recv_test' program in 'tests/'. * Added a 'SYSTEM.NOTIFICATION_ADDRESS' field to the database. * Incremented the database version to 276. * Added an 'Mcast Address for Notifications' control to the 'System-Wide Settings' dialog in rdadmin(1). * Implemented the 'Process Notification' ['ON'] command in ripcd(8). * Added an 'RDRipc::sendNotification()' method. * Added an 'RDRipc::notificationReceived()' signal.
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <rdstation.h>
|
||||
#include <rdmatrix.h>
|
||||
#include <rdmacro.h>
|
||||
#include <rdmulticaster.h>
|
||||
#include <rdtty.h>
|
||||
|
||||
#include <ripcd_connection.h>
|
||||
@@ -63,6 +64,7 @@ class MainObject : public QObject
|
||||
void newConnection(int fd);
|
||||
|
||||
private slots:
|
||||
void notificationReceivedData(const QString &msg,const QHostAddress &addr);
|
||||
void log(RDConfig::LogPriority prio,const QString &msg);
|
||||
void sendRml(RDMacro *rml);
|
||||
void readRml();
|
||||
@@ -87,7 +89,7 @@ class MainObject : public QObject
|
||||
void DispatchCommand(int);
|
||||
void KillSocket(int);
|
||||
void EchoCommand(int,const char *);
|
||||
void BroadcastCommand(const char *);
|
||||
void BroadcastCommand(const char *,int except_ch=-1);
|
||||
void EchoArgs(int,const char);
|
||||
void ReadRmlSocket(QSocketDevice *dev,RDMacro::Role role,bool echo);
|
||||
QString StripPoint(QString);
|
||||
@@ -132,6 +134,7 @@ class MainObject : public QObject
|
||||
QTimer *ripc_macro_timer[RD_MAX_MACRO_TIMERS];
|
||||
unsigned ripc_macro_cart[RD_MAX_MACRO_TIMERS];
|
||||
QTimer *ripcd_maint_timer;
|
||||
RDMulticaster *ripcd_notification_mcaster;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user