-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinclude.hpp
66 lines (50 loc) · 1.02 KB
/
include.hpp
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef UTILS_HPP
# define UTILS_HPP
#include <string.h>
#include <iostream>
#include <exception>
#include <algorithm>
#include <errno.h>
//Socket . Bind . Listen . Accept
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
//sockaddr_in
#include <netinet/in.h>
//memset
#include <string.h>
//read . write
#include <unistd.h>
#include <signal.h>
#include <sstream>
#include <fstream>
#include <sys/stat.h>
//select
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
//stl
#include <map>
#include <vector>
#include <utility>
#include <algorithm>
#include <fcntl.h>
// poll
#include <poll.h>
//opendir
#include <dirent.h>
#include <sys/wait.h>
// Colors
# define RED "\033[31m"
# define GREEN "\033[32m"
# define YELLOW "\033[33m"
# define ENDCOLOR "\033[0m"
#define RECV_SIZE 65536
#define TRUE 1
#define FALSE 0
#define POLL_SIZE 200
void *ft_memset(void *s, int c, size_t n);
int ft_atoi(const char *str);
std::string ft_getNextDir(std::string *path);
std::string ft_itoa(int n);
#endif