ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
discovery/strings.h
Go to the documentation of this file.
1#pragma once
2
14
15#include <stdbool.h>
16#include <stddef.h>
17#include <stdint.h>
18// NOTE: Use explicit path to avoid Windows include resolution picking up
19// options/common.h
20#include "../common.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26// ============================================================================
27// Session String Size Constants (Calculated from wordlists)
28// ============================================================================
29
38#define SESSION_STRING_MAX_LEN 38
39
44#define SESSION_STRING_BUFFER_SIZE (SESSION_STRING_MAX_LEN + 1)
45
52#define ACDS_MAX_UNIQUE_SESSIONS (2500LL * 5000LL * 5000LL)
53
68asciichat_error_t acds_string_generate(char *output, size_t output_size);
69
82
102bool is_session_string(const char *str);
103
104/*
105 * @brief Cleanup function for session string cache
106 */
107void acds_strings_destroy(void);
108
109#ifdef __cplusplus
110}
111#endif
asciichat_error_t acds_string_init(void)
Initialize session string system with cached word validation.
bool is_session_string(const char *str)
Check if a string is a valid session string.
void acds_strings_destroy(void)
Cleanup function for session string cache Called by asciichat_shared_destroy() during library cleanup...
asciichat_error_t acds_string_generate(char *output, size_t output_size)
Generate random session string.
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
⚙️ Common definitions, error codes, macros, and types shared throughout the application