|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <arpa/inet.h>#include <netinet/in.h>#include <signal.h>#include <sys/socket.h>#include <unistd.h>#include <atomic>#include <cstring>#include <iostream>#include <memory>#include <string>#include <thread>#include <vector>#include "control/HoldParse.hpp"#include "control/SequencerService.hpp"Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{sequencer_main.cpp} |
| sequencer_service — state machine, actuator commanding, abort, FIRE lifecycle. | |
Functions | |
| void | anonymous_namespace{sequencer_main.cpp}::signalHandler (int) |
| std::string | anonymous_namespace{sequencer_main.cpp}::trim (const std::string &s) |
| void | anonymous_namespace{sequencer_main.cpp}::handleCommandLine (int client_fd, const std::string &raw, sequencer::SequencerService &svc) |
| Execute one newline-terminated command and write its reply. | |
| void | anonymous_namespace{sequencer_main.cpp}::handleClient (int client_fd, sequencer::SequencerService &svc) |
| One connection, on its own thread: read lines, dispatch, reply, until the peer closes. | |
| int | main (int argc, char *argv[]) |
Variables | |
| std::atomic< bool > | anonymous_namespace{sequencer_main.cpp}::g_running {true} |
| constexpr size_t | anonymous_namespace{sequencer_main.cpp}::kMaxClients = 64 |
| constexpr size_t | anonymous_namespace{sequencer_main.cpp}::kMaxLineBytes = 512 |
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 225 of file sequencer_main.cpp.
References g_running, anonymous_namespace{sequencer_main.cpp}::handleClient(), sequencer::SequencerService::init(), anonymous_namespace{sequencer_main.cpp}::kMaxClients, send(), and signalHandler().