Shadow Network Framework  0.0.2-alpha
C Server Library for Shadow Network Framework
Loading...
Searching...
No Matches
SNF.h
Go to the documentation of this file.
1//////////////////////////////////////////////////////////////
2///
3/// \file SNF/SNF.h
4/// This file includes necessary Checks and includes the
5/// the nesessary libraries of the library
6///
7/// //////////////////////////////////////////////////////////
8#ifndef SNF_H
9#define SNF_H
10
11extern char* snf_getver();
12/// @brief Defines the library's version
13#define _SNF_VER snf_getver()
14
15
16#define _GNU_SOURCE
17
18#pragma region[Standard]
19#include <errno.h>
20#include <fcntl.h>
21#include <netdb.h>
22#include <unistd.h>
23#include <semaphore.h>
24#include <stdio.h>
25#include <stdlib.h>
26#include <stdint.h>
27#include <string.h>
28#include <netinet/in.h>
29#include <sys/epoll.h>
30#include <sys/socket.h>
31#include <sys/types.h>
32#pragma endregion
33
34#if __STDC_VERSION__ < 201112L
35#error Use C 11 or later !
36#else
37#if __STDC_NO_ATOMICS__ == 1
38#error Atomics not Supported, Abort.
39#endif
40#endif
41
42#pragma region[Non-Standard]
43#include <uuid/uuid.h>
44#include <pthread.h>
45#include <math.h>
46#pragma endregion
47
48#endif
char * snf_getver()