-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.h
52 lines (40 loc) · 949 Bytes
/
header.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
#ifndef HEADER_H_INCLUDED
#define HEADER_H_INCLUDED
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/shm.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/file.h>
#include <sys/wait.h>
#include <signal.h>
#include <stdlib.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <list>
#include <string>
#include <iostream>
#include <cstring>
using namespace std;
#define SA struct sockaddr
#define BUFSIZE 1024
#define MAXHOSTNAME 80
#define MESSAGE_SIZE 80
#define SIZE 10
#define USER_SIZE 25
#define ADDR_SIZE 16
#define SERVPANEL 1
#define SERVAUDIENCE 2
#define GETUSERNAME 3
#define CTRLC 4
#define DISCONNECTED 5
#define SHOWISOVER 6
#endif // HEADER_H_INCLUDED