-
Notifications
You must be signed in to change notification settings - Fork 1
/
bp.h
42 lines (37 loc) · 797 Bytes
/
bp.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
#ifndef __BIGPIG__
#define __BIGPIG__
#define ISDEBUG 0
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <dirent.h>
#include <sys/select.h>
#include <sys/epoll.h>
#include <time.h>
#include <pthread.h>
#include "log.h"
#include "file_ctrl.h"
#include "request.h"
#include "tcp_listen.h"
#include "pool.h"
#define PORT 80
#define MAXLINE 1024
#define BUF_SIZE 10240
#define ACCESS_LOG "log/access_log"
#define SERVER_LOG "log/server_log"
#define BASE_DIR "www"
#define WORKER_NUM 30
FILE *server_fp;
FILE *access_fp;
struct pool_node *mem_pool;
#endif