Aktualizr
C++ SOTA Client
|
Listens on a socket, decodes calls (ASN.1) and forwards them to an Uptane Secondary implementation. More...
#include <secondary_tcp_server.h>
Public Types | |
enum | ExitReason { kNotApplicable, kRebootNeeded, kUnkown } |
Public Member Functions | |
SecondaryTcpServer (MsgHandler &msg_handler, const std::string &primary_ip, in_port_t primary_port, in_port_t port=0, bool reboot_after_install=false) | |
SecondaryTcpServer (const SecondaryTcpServer &)=delete | |
SecondaryTcpServer & | operator= (const SecondaryTcpServer &)=delete |
void | run () |
Accept connections on the socket, decode requests and respond using the secondary implementation. | |
void | stop () |
void | wait_until_running (int timeout=10) |
in_port_t | port () const |
ExitReason | exit_reason () const |
Listens on a socket, decodes calls (ASN.1) and forwards them to an Uptane Secondary implementation.
Definition at line 16 of file secondary_tcp_server.h.