-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
46 lines (37 loc) · 848 Bytes
/
globals.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
#pragma once
// #define logging levels
// these are imaginary levels
// that sounded nice at the time
// ------------------------------
// 0 : no logging
// 1 : informational
// 2 : debugging
// 3 : give me er'thang
#define logging 0
#define STDIN 0
// standard includes because I'm lazy
// this is so bad...
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <string.h>
#include <string>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <map>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <signal.h>
using namespace std;
typedef map<int,string, less<int> >::iterator messagesIter;
const int SERVER_PORT = 7777;