|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "net/DaqInterface.hpp"#include <arpa/inet.h>#include <ifaddrs.h>#include <net/if.h>#include <netinet/in.h>#include <sys/socket.h>#include <unistd.h>#include <cerrno>#include <cstring>#include <iostream>#include <sstream>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | fsw::net::anonymous_namespace{DaqInterface.cpp}::Candidate |
Namespaces | |
| namespace | fsw |
| Motorized ball valve position: raw ADC counts -> % open. | |
| namespace | fsw::net |
| namespace | fsw::net::anonymous_namespace{DaqInterface.cpp} |
Functions | |
| bool | fsw::net::anonymous_namespace{DaqInterface.cpp}::isUnpinned (const std::string &a) |
| bool | fsw::net::anonymous_namespace{DaqInterface.cpp}::parseV4 (const std::string &s, uint32_t &out) |
| Parse dotted-quad into host-order uint32. | |
| bool | fsw::net::anonymous_namespace{DaqInterface.cpp}::canBind (const std::string &address) |
| Can this address actually be bound on this host? | |
| std::vector< uint32_t > | fsw::net::anonymous_namespace{DaqInterface.cpp}::boardAddresses (const ::fsw::config::Config &cfg) |
| The board addresses we are trying to reach. | |
| DaqBindResult | fsw::net::resolveDaqBindAddress (const ::fsw::config::Config &cfg, const char *who) |
| Decide which local address board traffic should leave from, and log the decision. | |
| bool | fsw::net::bindToDaqInterface (int sock, const std::string &address, const char *who) |
| bind() an already-created socket to address on an ephemeral port. | |