Zappy - Year end project 2
This is a project that Epitech asked us to create in order to allow us to reveiw the notions of the current year.
Loading...
Searching...
No Matches
client_management.h
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** server
4** File description:
5** client_management
6*/
7
8#ifndef CLIENT_MANAGEMENT_H_
9 #define CLIENT_MANAGEMENT_H_
10
11 #include "server_handler.h"
12
17void init_client(cli_t client[MAX_CLIENT]);
18
25int get_client(cli_t client[MAX_CLIENT], const int fd);
26
34int delete_client(cli_t client[MAX_CLIENT], const int fd);
35
41
42#endif
void delete_all_client(cli_t client[MAX_CLIENT])
The function to delete a every client from the cli_t structure.
int delete_client(cli_t client[MAX_CLIENT], const int fd)
The function to delete a specific client from the cli_t structure by the fd.
int get_client(cli_t client[MAX_CLIENT], const int fd)
The function to get the client index in the structure by the fd.
void init_client(cli_t client[MAX_CLIENT])
The function to initialize the cli_t structure.
#define MAX_CLIENT
Definition constants.h:15
A structure to store every client/player data.