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

Functions

bool p_client_send_packet (const p_client_t *client, const uint16_t type, const void *data, const int size)
 Send a packet from the client. More...
 

Function Documentation

◆ p_client_send_packet()

bool p_client_send_packet ( const p_client_t client,
uint16_t  type,
const void *  data,
int  size 
)

Send a packet from the client.

Parameters
clientPointer to the client.
typeType of the packet.
dataData to be included in the packet.
sizeSize of the data.
Returns
True on success, false on failure.
Here is the call graph for this function: