Google format
This commit is contained in:
33
server.h
33
server.h
@@ -9,25 +9,26 @@
|
||||
namespace firecgi {
|
||||
|
||||
class Server {
|
||||
public:
|
||||
Server(int port, const std::function<void(Request*)>& callback, int threads=1, int max_request_len=(16*1024));
|
||||
~Server();
|
||||
public:
|
||||
Server(int port, const std::function<void(Request*)>& callback,
|
||||
int threads = 1, int max_request_len = (16 * 1024));
|
||||
~Server();
|
||||
|
||||
void Serve();
|
||||
void Shutdown();
|
||||
void RegisterSignalHandlers();
|
||||
void Serve();
|
||||
void Shutdown();
|
||||
void RegisterSignalHandlers();
|
||||
|
||||
private:
|
||||
Connection *NewConn(int listen_sock, int epoll_fd);
|
||||
int NewListenSock();
|
||||
void ServeInt();
|
||||
private:
|
||||
Connection* NewConn(int listen_sock, int epoll_fd);
|
||||
int NewListenSock();
|
||||
void ServeInt();
|
||||
|
||||
const int port_;
|
||||
const std::function<void(Request*)> callback_;
|
||||
const int threads_;
|
||||
const int max_request_len_;
|
||||
const int port_;
|
||||
const std::function<void(Request*)> callback_;
|
||||
const int threads_;
|
||||
const int max_request_len_;
|
||||
|
||||
int close_fd_;
|
||||
int close_fd_;
|
||||
};
|
||||
|
||||
} // firecgi
|
||||
} // namespace firecgi
|
||||
|
||||
Reference in New Issue
Block a user