artdaq_mfextensions
v1_03_05
|
Receive messages through a UDP socket. Expects the syslog format provided by UDP_mfPlugin (ELUDP) More...
#include <mfextensions/Receivers/UDP_receiver.hh>
Public Member Functions | |
UDPReceiver (fhicl::ParameterSet pset) | |
UDPReceiver Constructor More... | |
virtual | ~UDPReceiver () |
Destructor – Close socket More... | |
void | run () override |
Receiver method. Receive messages and emit NewMessage signal More... | |
qt_mf_msg | read_msg (std::string input) |
Parse incoming message More... | |
![]() | |
MVReceiver (fhicl::ParameterSet pset) | |
Construct a MVReceiver using the given ParameterSet More... | |
virtual | ~MVReceiver () |
MVReceiver destructor More... | |
void | stop () |
Stop the MVReceiver thread More... | |
Static Public Member Functions | |
static bool | validate_packet (std::string input) |
Run simple validation tests on message More... | |
Additional Inherited Members | |
![]() | |
void | NewMessage (qt_mf_msg const &msg) |
When a message is received by the MVReceiver, this signal should be raised so that the connected listener can process it. More... | |
![]() | |
bool | stopRequested_ |
Whether the MVRecevier should stop More... | |
Receive messages through a UDP socket. Expects the syslog format provided by UDP_mfPlugin (ELUDP)
Definition at line 13 of file UDP_receiver.hh.
|
explicit |
UDPReceiver Constructor
pset | ParameterSet to use to configure the receiver |
Definition at line 11 of file UDP_receiver.cc.
|
virtual |
Destructor – Close socket
Definition at line 67 of file UDP_receiver.cc.
qt_mf_msg mfviewer::UDPReceiver::read_msg | ( | std::string | input | ) |
Parse incoming message
input | String to parse |
Definition at line 111 of file UDP_receiver.cc.
|
override |
Receiver method. Receive messages and emit NewMessage signal
Definition at line 73 of file UDP_receiver.cc.
|
static |
Run simple validation tests on message
input | String to validate |
Definition at line 221 of file UDP_receiver.cc.