mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-04 21:09:19 +08:00
32 lines
572 B
C++
32 lines
572 B
C++
#pragma once
|
|
|
|
#include "db/db.h"
|
|
|
|
class master_service : public acl::master_fiber {
|
|
public:
|
|
master_service() = default;
|
|
~master_service() override = default;
|
|
|
|
protected:
|
|
// @override
|
|
void on_accept(acl::socket_stream& conn) override;
|
|
|
|
// @override
|
|
void proc_on_listen(acl::server_socket& ss) override;
|
|
|
|
// @override
|
|
void proc_pre_jail() override;
|
|
|
|
// @override
|
|
void proc_on_init() override;
|
|
|
|
// @override
|
|
void proc_on_exit() override;
|
|
|
|
// @override
|
|
bool proc_on_sighup(acl::string&) override;
|
|
|
|
private:
|
|
pkv::shared_db db_;
|
|
};
|