1 #ifndef MFVIEWER_RECEIVERS_UDP_RECEIVER_HH
2 #define MFVIEWER_RECEIVERS_UDP_RECEIVER_HH
4 #include "mfextensions/Receivers/MVReceiver.hh"
6 #include "messagefacility/MessageLogger/MessageLogger.h"
20 explicit UDPReceiver(fhicl::ParameterSet
const& pset);
37 msg_ptr_t
read_msg(std::string
const& input);
52 void setupMessageListener_();
55 std::string message_addr_;
56 bool multicast_enable_;
57 std::string multicast_out_addr_;
60 std::list<std::string> tokenize_(std::string
const& input);
void run() override
Receiver method. Receive messages and emit NewMessage signal
Receive messages through a UDP socket. Expects the syslog format provided by UDP_mfPlugin (ELUDP) ...
UDPReceiver(fhicl::ParameterSet const &pset)
UDPReceiver Constructor
static bool validate_packet(std::string const &input)
Run simple validation tests on message
msg_ptr_t read_msg(std::string const &input)
Parse incoming message
virtual ~UDPReceiver()
Destructor – Close socket
A MVReceiver class listens for messages and raises a signal when one arrives