camcom 1.0.3
 
Loading...
Searching...
No Matches
camcom::server::CameraServer Class Reference

Main camera server class Orchestrates all components: adapter, HTTP server, frame pipeline. More...

#include <server.hpp>

Public Member Functions

 CameraServer (const ServerConfig &config)
 
 ~CameraServer ()
 
 CameraServer (const CameraServer &)=delete
 
CameraServeroperator= (const CameraServer &)=delete
 
bool start ()
 
void stop ()
 
bool isRunning () const
 
const std::string & getServerId () const
 

Detailed Description

Main camera server class Orchestrates all components: adapter, HTTP server, frame pipeline.

Thread model:

  • HTTP request thread (managed by httplib)
  • Capture thread: polls adapter->ReceiveFrame(), pushes into frame_queue_ Started/stopped with acquisition start/stop.
  • Publisher thread: consumes frame_queue_, encodes JPEG, updates HTTP cache and pushes to WebSocket clients. Runs while server is running.

Constructor & Destructor Documentation

◆ CameraServer() [1/2]

camcom::server::CameraServer::CameraServer ( const ServerConfig & config)
explicit

◆ ~CameraServer()

camcom::server::CameraServer::~CameraServer ( )

◆ CameraServer() [2/2]

camcom::server::CameraServer::CameraServer ( const CameraServer & )
delete

Member Function Documentation

◆ getServerId()

const std::string & camcom::server::CameraServer::getServerId ( ) const
inline

◆ isRunning()

bool camcom::server::CameraServer::isRunning ( ) const
inline

◆ operator=()

CameraServer & camcom::server::CameraServer::operator= ( const CameraServer & )
delete

◆ start()

bool camcom::server::CameraServer::start ( )

◆ stop()

void camcom::server::CameraServer::stop ( )

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