STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::net::anonymous_namespace{DaqInterface.cpp} Namespace Reference

Classes

struct  Candidate

Functions

bool isUnpinned (const std::string &a)
bool parseV4 (const std::string &s, uint32_t &out)
 Parse dotted-quad into host-order uint32.
bool canBind (const std::string &address)
 Can this address actually be bound on this host?
std::vector< uint32_t > boardAddresses (const ::fsw::config::Config &cfg)
 The board addresses we are trying to reach.

Function Documentation

◆ boardAddresses()

std::vector< uint32_t > fsw::net::anonymous_namespace{DaqInterface.cpp}::boardAddresses ( const ::fsw::config::Config & cfg)

The board addresses we are trying to reach.

Only explicitly configured IPs are used: the synthesized "192.168.2.<board_id>" fallback some services apply would hardcode the very subnet this function exists to discover, and would make the sim (127.0.0.x boards) resolve to the hardware LAN.

Definition at line 58 of file DaqInterface.cpp.

References b, boardAddresses(), and parseV4().

Referenced by boardAddresses().

◆ canBind()

bool fsw::net::anonymous_namespace{DaqInterface.cpp}::canBind ( const std::string & address)

Can this address actually be bound on this host?

The only honest test is to try.

Definition at line 36 of file DaqInterface.cpp.

References canBind(), and ok.

Referenced by canBind().

◆ isUnpinned()

bool fsw::net::anonymous_namespace{DaqInterface.cpp}::isUnpinned ( const std::string & a)

Definition at line 22 of file DaqInterface.cpp.

References a, and isUnpinned().

Referenced by isUnpinned().

◆ parseV4()

bool fsw::net::anonymous_namespace{DaqInterface.cpp}::parseV4 ( const std::string & s,
uint32_t & out )

Parse dotted-quad into host-order uint32.

Returns false on anything else.

Definition at line 27 of file DaqInterface.cpp.

References a, and parseV4().

Referenced by boardAddresses(), and parseV4().