ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
establish.h
Go to the documentation of this file.
1#pragma once
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
10 network_connection_t *, const connection_endpoint_t *, const char *,
11 void *);
12
25
42
43/* Open and negotiate one noninteractive attempt. prepare configures
44 * connection-owned security and caller-specific identity verification. The
45 * caller retains the owner on failure and must stop all borrowers before
46 * destroying it. A password challenge is reported to the caller; this function
47 * never prompts, retries or disposes it. */
52
53#ifdef __cplusplus
54}
55#endif
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:9
unsigned short uint16_t
unsigned char uint8_t
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
struct network_connection network_connection_t
network_protocol_t
Definition negotiation.h:9
For network connect config, this is the live record that ties timeout_ms, callback_data,...
network_protocol_t protocol
Definition establish.h:18
network_connection_prepare_fn prepare
Definition establish.h:20
const network_connect_config_t * connect
Definition establish.h:16
This is the handoff point for network establish config. Callers fill name, address,...
Definition establish.h:32
connection_endpoint_t endpoint
Definition establish.h:33