implemented Login and Register requests
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
#pragma once
|
||||
#include <pthread.h>
|
||||
#include "tlibc/collections/HashMap.h"
|
||||
#include "tlibc/collections/List.h"
|
||||
#include "tcp-chat/client.h"
|
||||
#include "db/idb.h"
|
||||
#include "cli/ClientCLI/db_tables.h"
|
||||
|
||||
typedef struct ClientCLI {
|
||||
Client* client;
|
||||
IncrementalDB* user_db;
|
||||
IncrementalDB* db;
|
||||
Table* db_servers_table;
|
||||
pthread_mutex_t servers_cache_mutex;
|
||||
List(Server) servers_cache_list; // index is id
|
||||
HashMap(u64) servers_addr_id_map; // key is server address
|
||||
} ClientCLI;
|
||||
|
||||
void ClientCLI_construct(ClientCLI* self);
|
||||
|
||||
Reference in New Issue
Block a user