IRSOL
C++ code implementing socket server for interacting with Baumer camera.
acceptor.hpp File Reference

Accepts and forwards incoming client connections to the session handler. More...

#include "irsol/server/client/session.hpp"
#include "irsol/types.hpp"
#include <atomic>
#include <functional>
#include <memory>

Go to the source code of this file.

Classes

class  irsol::server::internal::ClientSessionAcceptor
 Accepts incoming TCP connections and triggers a callback for each new client. More...
 

Namespaces

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

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

Accepts and forwards incoming client connections to the session handler.

This header defines the irsol::server::internal::ClientSessionAcceptor class, responsible for listening on a TCP port and invoking a callback for each new client connection. Typically, this is used to bootstrap a client session when a connection is made.

See also
irsol::server::App
irsol::server::ClientSession

Definition in file acceptor.hpp.