mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
add eboll
This commit is contained in:
@@ -29,6 +29,7 @@ public:
|
||||
void identifyType(std::string);
|
||||
void printHeaderInfo(void);
|
||||
void parseRequest(void);
|
||||
void clearHeader(void);
|
||||
Header();
|
||||
Header(char *);
|
||||
~Header();
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
#include "webserv.hpp"
|
||||
|
||||
#define BUFFSIZE 1024
|
||||
#define BUFFSIZE 1024
|
||||
#define MAX_CLIENT 1000
|
||||
|
||||
class Header;
|
||||
|
||||
@@ -11,18 +12,19 @@ class Server
|
||||
{
|
||||
private:
|
||||
int _port;
|
||||
int _serverSocket;
|
||||
int _clientSocket;
|
||||
// int _bufferSize;
|
||||
int _epolfd;
|
||||
int _client;
|
||||
struct epoll_event _events[MAX_CLIENT];
|
||||
struct sockaddr_in _addres;
|
||||
std::string _ip;
|
||||
|
||||
private:
|
||||
void checkError(int fd, std::string str);
|
||||
void sendFile(std::string str);
|
||||
void sendHeader(Header head);
|
||||
void sendRespons(Header head);
|
||||
|
||||
void sendHeader(Header head, int);
|
||||
void sendRespons(Header head, int);
|
||||
void setNonblocking(int fd);
|
||||
void newConnection(int fd);
|
||||
public:
|
||||
Server();
|
||||
Server(std::string path);
|
||||
|
||||
Reference in New Issue
Block a user