___ ___ ___ _ ___ ___ ___ __ ___ ___
| | | | .'|=|_.' .'|=| `. | |=|_.' .'|=|_.' .'|=| | | | | |
| | | | .' | ___ .' | | .' `. | .' | ___ .' | | | | | | |
| | | | | |=|_.' | |=|'. `.|=|`. | |=|_.' | |=|.' | | | |
`. | | .' | | ___ | | | | ___ | `.| | ___ | | |`. `. | | .'
`.|/\|.' |___|=|_.' |___|=|_.' `._|=|___||___|=|_.' |___| |_| `.|=|.'
A HTTP server in C++ 98
sudo docker build --no-cache -t 42tokyo ./
docker run -v [full-path to current-directory]:/usr/src/app --name webserv -it 42tokyo
inside the container
make
./webserv [configuration file]
if rewrite the Dockerfile
sudo docker stop webserv
sudo docker rm webserv
- Use C/C++.
- Use Makefile.
- No leaks.
- No clash.
- The program should be compiled with
-Wall -Wextra -Werror. - The program should be compiled with
-std=c++98. - Any external library and Boost libraries are forbidden.
- Allowed functions are below...
Everything in C++ 98.
execve, dup, dup2, pipe, strerror, gai_strerror,
errno, dup, dup2, fork, socketpair, htons, htonl,
ntohs, ntohl, select, poll, epoll (epoll_create,
epoll_ctl, epoll_wait), kqueue (kqueue, kevent),
socket, accept, listen, send, recv, chdir bind,
connect, getaddrinfo, freeaddrinfo, setsockopt,
getsockname, getprotobyname, fcntl, close, read,
write, waitpid, kill, signal, access, stat, open,
opendir, readdir and closedir.