LibQuicR
quicr::SessionManager::Callbacks Struct Reference

Notifications for sessions owned by a manager. More...

#include <session_manager.h>

Public Member Functions

virtual ~Callbacks ()=default
 Destroy the callback interface. More...
 
virtual void OnNewServerSession (const std::shared_ptr< Session > &new_session)
 Notify that a server accepted and created a session. More...
 
virtual void OnSessionRemoved (const std::shared_ptr< Session > &session)
 Notify immediately before a closed session is removed from the manager. More...
 

Detailed Description

Notifications for sessions owned by a manager.

Invoked on the corresponding transport's notification thread. Implementations must return promptly. OnSessionRemoved is called while the manager serializes its session state and must not re-enter the same manager.

Constructor & Destructor Documentation

◆ ~Callbacks()

virtual quicr::SessionManager::Callbacks::~Callbacks ( )
virtualdefault

Destroy the callback interface.

Member Function Documentation

◆ OnNewServerSession()

virtual void quicr::SessionManager::Callbacks::OnNewServerSession ( const std::shared_ptr< Session > &  new_session)
virtual

Notify that a server accepted and created a session.

Parameters
new_sessionSession retained by the manager for the lifetime of its connection.

◆ OnSessionRemoved()

virtual void quicr::SessionManager::Callbacks::OnSessionRemoved ( const std::shared_ptr< Session > &  session)
virtual

Notify immediately before a closed session is removed from the manager.

Parameters
sessionSession being removed; the callback may retain it if needed.

The documentation for this struct was generated from the following file: