38#define SNF_Total_Data (SNF_Total_Data_Rcv + SNF_Total_Data_Snt)
47#define UNIT_SCEPARATOR "\x1F"
80#define snf_rcv(Client, Buffer, _Size) snf_rcv_(Client, Buffer, _Size, 0)
82#define snf_rcv_PEEK(Client, Buffer, _Size) snf_rcv_(Client, Buffer, _Size, MSG_PEEK)
Main Header FileThis File Calls for all the header files exisitng in this library,...
This file Defines everything related to handling Clients.
_Atomic uint64_t SNF_Total_Data_Snt
Saves the Total data sent so far.
struct sockaddr_in SNF_CLIENT_ADDR
Structure that saves the Client's sockaddr_in.
struct sockaddr_in SNF_SERVER_ADDR
Structure that saves the Server's sockaddr_in.
int snf_snd(SNF_CLT *Client, const char *Buffer, int _Size)
Sends a Buffer to Client's socket's file descriptor.
_Atomic uint64_t SNF_Total_Data_Rcv
Saves the Total data received so far.
socklen_t SNF_CLIENT_LEN
Used for accept's length argument.
int SNF_SERVER_SOCKET
the main Socket that accepts new incoming connections
int snf_rcv_(SNF_CLT *Client, void *Buffer, int _Size, int _Flags)
Receives a Buffer from Client's socket's file descriptor.
void snf_network_init()
Initializes the Network Framwork.
void snf_network_join()
See snf_thpool_join.
The structure for each saved client.
Definition clt.h:24
this file Defines everything related to ThreadPool
this file Defines everything related to Globaly accessed variable