init
This commit is contained in:
30
srcs/Webserv.hpp
Normal file
30
srcs/Webserv.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user