Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Types | Public Member Functions | List of all members
SecondaryTcpServer Class Reference

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
 
SecondaryTcpServeroperator= (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
 

Detailed Description

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.


The documentation for this class was generated from the following files: