tdaq-develop-2025-02-12
ots::UDPReceiver Class Reference
Inheritance diagram for ots::UDPReceiver:

Public Member Functions

 UDPReceiver (fhicl::ParameterSet const &ps)
 

Protected Member Functions

bool getNext_ (artdaq::FragmentPtrs &output) override
 
void start (void) override
 
virtual void start_ ()
 
virtual void stop (void) override
 
virtual void stopNoMutex (void) override
 
virtual void ProcessData_ (artdaq::FragmentPtrs &output, size_t totalSize)
 
DataType getDataType (uint8_t byte)
 
ReturnCode getReturnCode (uint8_t byte)
 
void send (CommandType flag)
 

Protected Attributes

packetBuffer_list_t packetBuffers_
 
bool rawOutput_
 
std::string rawPath_
 
int dataport_
 
std::string ip_
 
int rcvbuf_
 
uint8_t expectedPacketNumber_
 The packet number of the next packet. Used to discover dropped packets.
 
struct sockaddr_in si_data_
 Socket parameters.
 
int datasocket_
 
bool sendCommands_
 

Detailed Description

Definition at line 71 of file UDPReceiver.hh.

Member Function Documentation

◆ getNext_()

bool ots::UDPReceiver::getNext_ ( artdaq::FragmentPtrs &  output)
overrideprotected

The "getNext_" function is used to implement user-specific functionality; it's a mandatory override of the pure virtual getNext_ function declared in CommandableFragmentGenerator

Definition at line 232 of file UDPReceiver_generator.cc.

Member Data Documentation

◆ dataport_

int ots::UDPReceiver::dataport_
protected

FHiCL-configurable variables. Note that the C++ variable names are the FHiCL variable names with a "_" appended

Definition at line 105 of file UDPReceiver.hh.


The documentation for this class was generated from the following files: