IRSOL
C++ code implementing socket server for interacting with Baumer camera.
Server

Core server features. TOBE DEFINED FURTHER. More...

Files

file  acceptor.hpp
 Accepts and forwards incoming client connections to the session handler.
 
file  app.hpp
 Main server application managing client connections and camera streaming.
 
file  session.hpp
 Declaration of the ClientSession class.
 
file  state.hpp
 Defines session-specific internal state structures for connected clients.
 

Namespaces

namespace  irsol::server
 Core server features. TOBE DEFINED FURTHER.
 

Classes

class  irsol::server::internal::ClientSessionAcceptor
 Accepts incoming TCP connections and triggers a callback for each new client. More...
 
class  irsol::server::App
 Main server application that manages client connections and camera streaming. More...
 
class  irsol::server::ClientSession
 Represents a single connected client session. More...
 
struct  irsol::server::internal::GisParams
 Per-client configuration parameters for the GIS (GetImageSequence) command. More...
 
struct  irsol::server::internal::FrameListeningState
 Controls how a client listens for frames, including thread management and GIS parameters. More...
 
struct  irsol::server::internal::UserSessionData
 Encapsulates all per-client data used during a session's lifetime. More...
 

Typedefs

using irsol::server::internal::OnNewClientCallback_t = std::function< void(irsol::types::client_id_t, irsol::types::socket_t &&)>
 Callback function for handling new client connections.
 

Detailed Description

Core server features. TOBE DEFINED FURTHER.

Typedef Documentation

◆ OnNewClientCallback_t

Callback function for handling new client connections.

This callback is invoked by the acceptor when a new TCP client connects.

Note
Usually this callback is provided by the server irsol::server::App, where clients are then registered and server within a newly spawned thread.
Parameters
clientIdUnique identifier for the client.
sockTCP socket for the new client. Ownership is transferred via rvalue reference.

Definition at line 38 of file acceptor.hpp.