Represents a request sent to the RoutingManager for routing information.
More...
#include <artdaq/DAQrate/detail/RoutingPacket.hh>
|
enum | RequestMode : uint8_t { Connect = 0,
Disconnect = 1,
Request = 2,
Invalid = 255
} |
| The mode of this request, whether Request or Connect/Disconnect control messages.
|
|
|
uint32_t | header {0} |
| Magic bytes for identifying message type on wire.
|
|
int32_t | rank {-1} |
| The rank of the request sender.
|
|
Fragment::sequence_id_t | sequence_id {artdaq::Fragment::InvalidSequenceID} |
| The sequence ID being requested in Request mode.
|
|
RequestMode | mode {RequestMode::Invalid} |
| Mode of the request.
|
|
Represents a request sent to the RoutingManager for routing information.
Definition at line 124 of file RoutingPacket.hh.
artdaq::detail::RoutingRequest::RoutingRequest |
( |
int |
r, |
|
|
RequestMode |
m = RequestMode::Connect |
|
) |
| |
|
inline |
Create a request using the given rank and mode.
- Parameters
-
r | Rank of the requestor |
m | Mode of this request |
This constructor is primarily used to sed RequestMode::Connect and RequestMode::Disconnect control messages
Definition at line 170 of file RoutingPacket.hh.
artdaq::detail::RoutingRequest::RoutingRequest |
( |
int |
r, |
|
|
Fragment::sequence_id_t |
seq |
|
) |
| |
|
inline |
Create a RoutingRequest using the given rank and sequence ID.
- Parameters
-
r | Rank of the requestor |
seq | Sequence ID of request |
Definition at line 178 of file RoutingPacket.hh.
static std::string artdaq::detail::RoutingRequest::RequestModeToString |
( |
RequestMode |
m | ) |
|
|
inlinestatic |
Convert a RequestMode enumeration value to string.
- Parameters
-
- Returns
- String representation of RequestMode
Definition at line 142 of file RoutingPacket.hh.
The documentation for this struct was generated from the following file: