ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
nouns.h
Go to the documentation of this file.
1
15#ifndef ASCII_CHAT_DISCOVERY_NOUNS_H
16#define ASCII_CHAT_DISCOVERY_NOUNS_H
17
18#include <stddef.h>
19#include <stdbool.h>
20
40extern const char *nouns[];
41
49extern const size_t nouns_count;
50
73int generate_client_id(char *buffer, size_t buffer_size);
74
115int generate_client_name(char *buffer, size_t buffer_size, void *existing_clients_hash, int port, bool is_tcp);
116
117#endif // ASCII_CHAT_DISCOVERY_NOUNS_H
int buffer_size
Size of circular buffer.
Definition grep.c:90
const char * nouns[]
Array of English nouns for session and client naming.
Definition nouns.c:55
const size_t nouns_count
Count of nouns in the nouns array.
Definition nouns.c:772
int generate_client_id(char *buffer, size_t buffer_size)
Generate a unique client ID (noun only, no counter or port)
Definition nouns.c:780
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:809
ClangTool/LibTooling compatibility shim for stdbool.h.