my_teams
get_client.c File Reference
#include <unistd.h>
#include "protocol.h"
Include dependency graph for get_client.c:

Functions

p_client_tget_client (const int fd, const p_server_t *server)
 Get the client with the given file descriptor. More...
 

Function Documentation

◆ get_client()

p_client_t* get_client ( int  fd,
const p_server_t server 
)

Get the client with the given file descriptor.

Parameters
fdFile descriptor of the client.
serverPointer to the server.
Returns
Pointer to the client.
Here is the call graph for this function: