ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
establish.h
Go to the documentation of this file.
1#pragma once
4
6 const char *, void *);
7
20
31
32/* Open and negotiate one noninteractive attempt. prepare configures connection-owned
33 * security and caller-specific identity verification. The caller retains the owner
34 * on failure and must stop all borrowers before destroying it. A password challenge
35 * is reported to the caller; this function never prompts, retries or disposes it. */
asciichat_error_t network_connection_establish(const network_establish_config_t *config, network_connection_t **owner, network_establish_result_t *attempt)
asciichat_error_t(* network_connection_prepare_fn)(network_connection_t *, const connection_endpoint_t *, const char *, void *)
Definition establish.h:5
unsigned short uint16_t
Definition common.h:61
unsigned char uint8_t
Definition common.h:60
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
struct network_connection network_connection_t
network_protocol_t
Definition negotiation.h:5
For network connect config, this is the live record that ties timeout_ms, callback_data,...
network_protocol_t protocol
Definition establish.h:13
network_connection_prepare_fn prepare
Definition establish.h:15
const network_connect_config_t * connect
Definition establish.h:11
This is the handoff point for network establish config. Callers fill name, address,...
Definition establish.h:24
connection_endpoint_t endpoint
Definition establish.h:25