CosmoGRaPH v0.0
nweb23.h
1 #ifndef NWEB23
2 #define NWEB23
3 
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <unistd.h>
7 #include <errno.h>
8 #include <string.h>
9 #include <fcntl.h>
10 #include <signal.h>
11 #include <sys/types.h>
12 #include <sys/socket.h>
13 #include <netinet/in.h>
14 #include <arpa/inet.h>
15 #include <thread>
16 #include <string>
17 #define VERSION 23
18 #define BUFSIZE 8096
19 #define ERROR 42
20 #define LOG 44
21 #define FORBIDDEN 403
22 #define NOTFOUND 404
23 #define PORT 8080
24 
25 namespace cosmo
26 {
27 
29 class webServer
30 {
31  real_t running;
32  std::string logfile;
33 
34  void logger(int type, std::string s1, std::string s2, int socket_fd);
35  void serve(int fd, int hit);
36 
37 public:
38 
39  webServer();
40  ~webServer();
41 
42  void server_start();
43 
44 };
45 
46 }
47 
48 #endif
Definition: nweb23.h:29
Definition: bardeen.cc:5