This file includes necessary Checks and includes the the nesessary libraries of the library.
void snf_clt_init(int ht_min_Size)
Initialises the HashTable that saves the clients.
int snf_clt_check_sockfd(int Sockfd)
Checks the existance of a SNF_CLT depending on their SNF_CLT::sock.
SNF_CLT * snf_clt_get_sockfd(int Sockfd)
Searches for a SNF_CLT depending on their SNF_CLT::sock.
void * snf_clt_handle(void *arg)
Handles existing Clients.
SNF_CLT * snf_clt_get_uuid(const char *uuid)
Searches for a SNF_CLT depending on their SNF_CLT::UUID.
void * snf_clt_handle_new(void *arg)
Handles new incoming Clients.
void snf_clt_free(SNF_CLT *Client)
Frees the allocated SNF_CLT.
void snf_clt_disconnect(SNF_CLT *Client)
Function to be called upon Client Disconnection.
SNF_CLT * snf_clt_new(int Sockfd)
Creates (and allocates) a new Client using their Sockfd, with a default SNF_CLT::UUID with the value ...
int snf_clt_check_uuid(const char *uuid)
Checks the existance of a SNF_CLT depending on their SNF_CLT::UUID.
void snf_clt_connect(SNF_CLT *Client)
Function to be called upon Client Connection.
void snf_clt_reconnect(SNF_CLT *Client)
Function to be called upon Client Re-Connection.
This file is used to define functions related to epoll that would be used mainly in network....
This file Defines the HashTable functions and macros The HashTable uses locate3.c 's hashing function...
This file Defines everything related to networking.
This file Defines everything related to Opcodes ( Short for OP**eartion**Codes )
This file Defines everything related to handling Requests.
The structure for each saved client.
Definition clt.h:25
char UUID[37]
Saves the 36 ( +1 Null character ) character wide Unique User IDentifier. Used to defined the connect...
Definition clt.h:29
pthread_mutex_t mutex
Mutex used to avoid Race Condition.
Definition clt.h:27
int sock
Saves the socket id.
Definition clt.h:31