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

Host-side event hooks for joins, departures, media, and errors. More...

#include <src/common/session/host.h>

Data Fields

int port
 Port to listen on (default: 27224).
const char * ipv4_address
 IPv4 address to bind to (NULL for any).
const char * ipv6_address
 IPv6 address to bind to (NULL for any).
int max_clients
 Maximum number of clients.
bool encryption_enabled
 Enable encryption (default: true).
bool configured_quic_listeners
const char * key_path
 Path to server identity key.
const char * password
 Password for client authentication (optional).
session_host_callbacks_t callbacks
 Event callbacks.
void * user_data
 User-provided context pointer passed to callbacks.
struct session_display_ctx * display_context
 Display context for local frame rendering (optional, can be NULL).

Detailed Description

Host-side event hooks for joins, departures, media, and errors.

Listener, capacity, security, and callback settings for a session host.

Definition at line 159 of file host.h.

Field Documentation

◆ callbacks

session_host_callbacks_t session_host_config_t::callbacks

Event callbacks.

Definition at line 185 of file host.h.

Referenced by session_host_create().

◆ configured_quic_listeners

bool session_host_config_t::configured_quic_listeners

Start the configured native QUIC and HTTP/3 listeners with this host.

Definition at line 176 of file host.h.

Referenced by session_host_create().

◆ display_context

struct session_display_ctx* session_host_config_t::display_context

Display context for local frame rendering (optional, can be NULL).

Listener, capacity, security, and callback settings for a session host

Definition at line 194 of file host.h.

◆ encryption_enabled

bool session_host_config_t::encryption_enabled

Enable encryption (default: true).

Definition at line 173 of file host.h.

Referenced by session_host_create().

◆ ipv4_address

const char* session_host_config_t::ipv4_address

IPv4 address to bind to (NULL for any).

Definition at line 164 of file host.h.

Referenced by session_host_create().

◆ ipv6_address

const char* session_host_config_t::ipv6_address

IPv6 address to bind to (NULL for any).

Definition at line 167 of file host.h.

Referenced by session_host_create().

◆ key_path

const char* session_host_config_t::key_path

Path to server identity key.

Definition at line 179 of file host.h.

Referenced by session_host_create().

◆ max_clients

int session_host_config_t::max_clients

Maximum number of clients.

Definition at line 170 of file host.h.

Referenced by session_host_create().

◆ password

const char* session_host_config_t::password

Password for client authentication (optional).

Definition at line 182 of file host.h.

Referenced by session_host_create().

◆ port

int session_host_config_t::port

Port to listen on (default: 27224).

Definition at line 161 of file host.h.

Referenced by session_host_create().

◆ user_data

void* session_host_config_t::user_data

User-provided context pointer passed to callbacks.

Definition at line 188 of file host.h.

Referenced by session_host_create().


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