Skip to content

Latest commit

 

History

History
56 lines (48 loc) · 1.75 KB

File metadata and controls

56 lines (48 loc) · 1.75 KB
 ___    ___         ___        _    ___   ___        ___        __   ___   ___
|   |  |   |   .'|=|_.'   .'|=| `. |   |=|_.'   .'|=|_.'   .'|=|  | |   | |   |
|   |  |   | .'  |  ___ .'  | | .' `.  |      .'  |  ___ .'  | |  | |   | |   |
|   |  |   | |   |=|_.' |   |=|'.    `.|=|`.  |   |=|_.' |   |=|.'  |   | |   |
`.  |  |  .' |   |  ___ |   | |  |  ___  |  `.|   |  ___ |   |  |`. `.  | |  .'
  `.|/\|.'   |___|=|_.' |___|=|_.'  `._|=|___||___|=|_.' |___|  |_|   `.|=|.'

Webserv

Overview

A HTTP server in C++ 98

Usage

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

Rule

  1. Use C/C++.
  2. Use Makefile.
  3. No leaks.
  4. No clash.
  5. The program should be compiled with -Wall -Wextra -Werror.
  6. The program should be compiled with -std=c++98.
  7. Any external library and Boost libraries are forbidden.
  8. 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.

technology used

cplusplus docker