-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws.h
30 lines (24 loc) · 662 Bytes
/
aws.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
/*
* Asynchronous Web Server - header file (macros and structures)
*
* 2011-2017, Operating Systems
*/
#ifndef AWS_H_
#define AWS_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
#define ERR_MSG "HTTP/1.0 404 Not Found\r\n\r\n"
#define OK_MSG "HTTP/1.0 200 OK\r\n\r\n"
#define STATIC "static"
#define DYNAMIC "dynamic"
#define AWS_LISTEN_PORT 8888
#define AWS_DOCUMENT_ROOT "./"
#define AWS_REL_STATIC_FOLDER "static/"
#define AWS_REL_DYNAMIC_FOLDER "dynamic/"
#define AWS_ABS_STATIC_FOLDER (AWS_DOCUMENT_ROOT AWS_REL_STATIC_FOLDER)
#define AWS_ABS_DYNAMIC_FOLDER (AWS_DOCUMENT_ROOT AWS_REL_DYNAMIC_FOLDER)
#ifdef __cplusplus
}
#endif
#endif /* AWS_H_ */