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.
13 lines
238 B
13 lines
238 B
#pragma once
|
|
#include "webserv.hpp"
|
|
|
|
class Env {
|
|
std::vector<Server *> _servers;
|
|
std::vector<Socket *> _sockets;
|
|
|
|
public:
|
|
Env(JSONNode *conf);
|
|
void set_fds();
|
|
void refresh();
|
|
Server *choose_server(Socket *sock, string host);
|
|
};
|
|
|