You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
445 B

2 years ago
#pragma once
#include "webserv.hpp"
class Master {
int _poll_id;
2 years ago
int _fd;
std::vector<Client *> _childs;
2 years ago
struct sockaddr_in _address;
2 years ago
public:
Master(ip_port_t listen);
2 years ago
~Master(void);
2 years ago
void check_socket(void);
void check_childs(Env *env);
2 years ago
Server *choose_server(Env *env, string host);
2 years ago
ip_port_t _listen;
static int _poll_id_amount;
static int _first_cli_id;
static struct pollfd *_pollfds;
2 years ago
};