artdaq
v3_09_00
|
PortManager attempts to automatically detect interfaces and ports used for the various TCP and UDP sockets used by artdaq. More...
#include <artdaq/DAQdata/PortManager.hh>
Classes | |
struct | Config |
Configuration of PortManager. May be used for parameter validation More... | |
Public Types | |
using | Parameters = fhicl::WrappedTable< Config > |
Used for ParameterSet validation (if desired) | |
Public Member Functions | |
PortManager () | |
PortManager Construator. | |
void | UpdateConfiguration (fhicl::ParameterSet const &ps) |
Override the default configuration. More... | |
int | GetRoutingTokenPort (int subsystemID=0) |
Get the port that should be used for Routing Tokens. More... | |
int | GetRoutingAckPort (int subsystemID=0) |
Get the port that should be used for Routing Acknowledgements. More... | |
int | GetXMLRPCPort (int rank) |
Get the XMLRPC port for the given rank. More... | |
int | GetTCPSocketTransferPort (int rank) |
Get the TCP Socket transfer port for the given rank. More... | |
int | GetRequestMessagePort () |
Get the port that should be used for multicast request messages. More... | |
std::string | GetRequestMessageGroupAddress (int subsystemID=0) |
Get the multicast address for request messages. More... | |
int | GetRoutingTablePort () |
Get the port that should be used for multicast Routing Tables. More... | |
std::string | GetRoutingTableGroupAddress (int subsystemID=0) |
Get the multicast address for Routing Tables. More... | |
int | GetMulticastTransferPort (int rank) |
Get the multicast transfer port for the given rank. More... | |
std::string | GetMulticastTransferGroupAddress () |
Get the multicast address for multicast transfers. More... | |
in_addr | GetMulticastOutputAddress (const std::string &interface_name="", const std::string &interface_address="") |
Determine the output interface address, using the hints provided. More... | |
PortManager attempts to automatically detect interfaces and ports used for the various TCP and UDP sockets used by artdaq.
Definition at line 24 of file PortManager.hh.
in_addr artdaq::PortManager::GetMulticastOutputAddress | ( | const std::string & | interface_name = "" , |
const std::string & | interface_address = "" |
||
) |
Determine the output interface address, using the hints provided.
interface_name | If set, the name of the interface that should be used for multicast (e.g. "eth0"). Default: "" |
interface_address | If set, the address of the interface that should be used for multicast (e.g. 192.168.0.1). Default: "" |
If neither interface_name or interface_address are set, then the interface will be auto-detected, giving preference to private network addresses.
Definition at line 349 of file PortManager.cc.
std::string artdaq::PortManager::GetMulticastTransferGroupAddress | ( | ) |
Get the multicast address for multicast transfers.
Definition at line 338 of file PortManager.cc.
int artdaq::PortManager::GetMulticastTransferPort | ( | int | rank | ) |
Get the multicast transfer port for the given rank.
rank | Rank to get multicast transfer port for |
Definition at line 327 of file PortManager.cc.
std::string artdaq::PortManager::GetRequestMessageGroupAddress | ( | int | subsystemID = 0 | ) |
Get the multicast address for request messages.
subsystemID | Subsystem that this artdaq process belongs to |
Definition at line 294 of file PortManager.cc.
int artdaq::PortManager::GetRequestMessagePort | ( | ) |
Get the port that should be used for multicast request messages.
Definition at line 284 of file PortManager.cc.
int artdaq::PortManager::GetRoutingAckPort | ( | int | subsystemID = 0 | ) |
Get the port that should be used for Routing Acknowledgements.
subsystemID | Subsystem that this artdaq process belongs to |
Definition at line 254 of file PortManager.cc.
std::string artdaq::PortManager::GetRoutingTableGroupAddress | ( | int | subsystemID = 0 | ) |
Get the multicast address for Routing Tables.
subsystemID | Subsystem that this artdaq process belongs to |
Definition at line 316 of file PortManager.cc.
int artdaq::PortManager::GetRoutingTablePort | ( | ) |
Get the port that should be used for multicast Routing Tables.
Definition at line 305 of file PortManager.cc.
int artdaq::PortManager::GetRoutingTokenPort | ( | int | subsystemID = 0 | ) |
Get the port that should be used for Routing Tokens.
subsystemID | Subsystem that this artdaq process belongs to |
Definition at line 243 of file PortManager.cc.
int artdaq::PortManager::GetTCPSocketTransferPort | ( | int | rank | ) |
Get the TCP Socket transfer port for the given rank.
rank | Rank to get TCP Socket transfer port for |
Definition at line 274 of file PortManager.cc.
int artdaq::PortManager::GetXMLRPCPort | ( | int | rank | ) |
Get the XMLRPC port for the given rank.
rank | Rank to get XMLRPC port for |
Definition at line 264 of file PortManager.cc.
void artdaq::PortManager::UpdateConfiguration | ( | fhicl::ParameterSet const & | ps | ) |
Override the default configuration.
ps | ParameterSet containing overridden parameters |
Definition at line 15 of file PortManager.cc.