30 lines
570 B
C++
30 lines
570 B
C++
|
|
#ifndef WEBSERV_HPP
|
|
# define WEBSERV_HPP
|
|
|
|
# include <string>
|
|
# include <map>
|
|
# include <cerrno> // errno
|
|
# include <cstdio> // perror
|
|
# include <exception>
|
|
# include <stdexcept>
|
|
|
|
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
|
|
|
|
class Webserv
|
|
{
|
|
public:
|
|
//Webserv(Placeholder);
|
|
Webserv();
|
|
Webserv(Webserv const &src);
|
|
~Webserv();
|
|
Webserv &operator=(Webserv const &rhs);
|
|
|
|
private:
|
|
int _socket_fd;
|
|
std::map<std::string, std::string> _request;
|
|
std::map<std::string, std::string> _response;
|
|
|
|
};
|
|
|
|
#endif |