ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
nouns.h
Go to the documentation of this file.
1
15
16#ifndef ASCII_CHAT_DISCOVERY_NOUNS_H
17#define ASCII_CHAT_DISCOVERY_NOUNS_H
18
19#include <stdbool.h>
20#include <stddef.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
46extern const char *nouns[];
47
55extern const size_t nouns_count;
56
82int generate_client_id(char *buffer, size_t buffer_size);
83
128int generate_client_name(char *buffer, size_t buffer_size,
129 void *existing_clients_hash, int port, bool is_tcp);
130
131#endif // ASCII_CHAT_DISCOVERY_NOUNS_H
132
133#ifdef __cplusplus
134}
135#endif
int buffer_size
Size of circular buffer.
Definition grep.c:69
const char * nouns[]
Array of English nouns for session and client naming.
Definition nouns.c:58
const size_t nouns_count
Count of nouns in the nouns array.
Definition nouns.c:1310
int generate_client_id(char *buffer, size_t buffer_size)
Generate a unique client ID (noun only, no counter or port).
Definition nouns.c:1319
int generate_client_name(char *buffer, size_t buffer_size, void *existing_clients_hash, int port, bool is_tcp)
Generate a unique client name from the nouns wordlist.
Definition nouns.c:1348