ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
session_host_config_t Struct Reference

Configuration for session host. 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)
 
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

Configuration for session host.

Definition at line 154 of file host.h.

Field Documentation

◆ callbacks

session_host_callbacks_t session_host_config_t::callbacks

Event callbacks.

Definition at line 177 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)

Definition at line 183 of file host.h.

◆ encryption_enabled

bool session_host_config_t::encryption_enabled

Enable encryption (default: true)

Definition at line 168 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 159 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 162 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 171 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 165 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 174 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 156 of file host.h.

Referenced by discovery_session_become_host(), discovery_session_process(), and session_host_create().

◆ user_data

void* session_host_config_t::user_data

User-provided context pointer passed to callbacks.

Definition at line 180 of file host.h.

Referenced by session_host_create().


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