100#define SNF_N_VARS ((int)SNF_VAR_INITIALIZED + 1)
111#define snf_var_geta(VARNAME, TYPE) ((TYPE **)snf_var_geta_void(VARNAME))
116#define snf_var_get(VARNAME, TYPE) *snf_var_geta(VARNAME, TYPE)
121#define snf_var_getv(VARNAME, TYPE) *snf_var_get(VARNAME, TYPE)
Main Header FileThis File Calls for all the header files exisitng in this library,...
this file Defines everything related to ThreadPool
enum SNF_VARS_e SNF_VARS
This Enum saved the identifiers for variables available as of this version.
SNF_VARS_e
This Enum saved the identifiers for variables available as of this version.
Definition vars.h:23
@ SNF_VAR_THREADPOOL
Variable for saving the threadpool instance
Definition vars.h:37
@ SNF_VAR_CLTS_INITIAL
Variable for the amount of initially planned amount of client to connect, for the Hashtable saving th...
Definition vars.h:83
@ SNF_VAR_MAX_QUEUE
Variable for saving maximum connections that are able to queue while waiting forthe server to accept,...
Definition vars.h:49
@ SNF_VAR_EPOLL_EVENTS
Variable for saving events that are used by epoll
Definition vars.h:69
@ SNF_VAR_EPOLL_TIMEOUT
Variable for saving the maximum timeout in miliseconds for epoll_wait()
Definition vars.h:75
@ SNF_VAR_EPOLL_MAXEVENTS
Variable for saving the amount possible of concurrent connections ( See limitations of epoll )
Definition vars.h:62
@ SNF_VAR_OPCODE_INIS
Variable for saving if SNF_VAR_OPCODE_INIS
Definition vars.h:56
@ SNF_VAR_INITIALIZED
Variable for saving if the Variables has been defaulted and/or initalized before.
Definition vars.h:96
@ SNF_VAR_RQST_MAX_LENGTH
Variable for saving the maximum allowed length of a Request
Definition vars.h:89
@ SNF_VAR_PORT
Variable for saving the port used by SNF
Definition vars.h:43
@ SNF_VAR_THREADS
Variable for threads used by SNF
Definition vars.h:30
void snf_var_set(SNF_VARS VARNAME, void *Value)
Allows to set the value of a variable.
void ** snf_var_geta_void(SNF_VARS VARNAME)
Returns the address of the void* pointer of the variable.
void snf_var_default()
Defaults and allocates the variables.