ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
parallel_connect.h
Go to the documentation of this file.
1
11#ifndef PARALLEL_CONNECT_H
12#define PARALLEL_CONNECT_H
13
14#include "../platform/socket.h"
15#include "../common.h"
16
26typedef bool (*parallel_connect_should_exit_fn)(void *user_data);
27
28typedef struct {
29 const char *hostname;
31 uint32_t timeout_ms; // Per-attempt timeout
32
33 // Optional: callback to check if connection should be abandoned (e.g., shutdown signal)
34 // Called periodically from connection threads (~100ms intervals)
38
54
55#endif // PARALLEL_CONNECT_H
unsigned short uint16_t
Definition common.h:57
unsigned int uint32_t
Definition common.h:58
asciichat_error_t
Error and exit codes - unified status values (0-255)
Definition error_codes.h:49
int socket_t
asciichat_error_t parallel_connect(const parallel_connect_config_t *config, socket_t *out_socket)
bool(* parallel_connect_should_exit_fn)(void *user_data)
Callback type to check if connection should be abandoned.
#define bool
Definition stdbool.h:61
parallel_connect_should_exit_fn should_exit_callback