-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.h
52 lines (40 loc) · 892 Bytes
/
global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*libraries used in the code*/
#ifndef global
#define global
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <getopt.h>
#include <locale.h>
#include <bits/posix1_lim.h>
#include <ctype.h>
#include <curses.h>
#include <sys/file.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <ifaddrs.h>
#include <linux/if_link.h>
#include <netdb.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "structDef.h"
/*macros used in the code*/
#define _GNU_SOURCE
#define _(string) gettext(string)
#define DEFAULT_IP "127.0.0.1"
#define infoLEN 16
#define LINEBUFF 2048
#define MAXCLIENTS 3
#define BUFFSIZE 1024
#define ALIASLEN 32
#define BACKLOG 10
#endif