ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
BrowserHostState Struct Reference

Public Member Functions

void reset ()
 ~BrowserHostState ()

Data Fields

session_host_t * host = nullptr
std::array< acip_transport_t, MAX_SESSION_PARTICIPANTS > transports {}
std::array< uint32_t, MAX_SESSION_PARTICIPANTS > client_ids {}

Detailed Description

Definition at line 20 of file session_host.cpp.

Constructor & Destructor Documentation

◆ ~BrowserHostState()

BrowserHostState::~BrowserHostState ( )
inline

Definition at line 30 of file session_host.cpp.

30 {
31 reset();
32 }

References reset().

Member Function Documentation

◆ reset()

void BrowserHostState::reset ( )
inline

Definition at line 24 of file session_host.cpp.

24 {
26 host = nullptr;
27 client_ids.fill(0);
28 transports.fill({});
29 }
asciichat_error_t session_host_destroy(session_host_t *host)
Destroy session host and free resources.
Definition host.c:289
std::array< acip_transport_t, MAX_SESSION_PARTICIPANTS > transports
std::array< uint32_t, MAX_SESSION_PARTICIPANTS > client_ids
session_host_t * host

References client_ids, host, session_host_destroy(), and transports.

Referenced by ~BrowserHostState().

Field Documentation

◆ client_ids

std::array<uint32_t, MAX_SESSION_PARTICIPANTS> BrowserHostState::client_ids {}

Definition at line 23 of file session_host.cpp.

23{};

Referenced by reset().

◆ host

session_host_t* BrowserHostState::host = nullptr

Definition at line 21 of file session_host.cpp.

Referenced by reset().

◆ transports

std::array<acip_transport_t, MAX_SESSION_PARTICIPANTS> BrowserHostState::transports {}

Definition at line 22 of file session_host.cpp.

22{};

Referenced by reset().


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