acl/app/wizard_demo/dns-gate/service/master_service.h
2022-05-01 09:00:08 +08:00

35 lines
602 B
C++

#pragma once
//////////////////////////////////////////////////////////////////////////////
//class acl::socket_stream;
class master_service : public acl::master_udp
{
public:
master_service(void);
~master_service(void);
protected:
// @override
void on_read(acl::socket_stream* stream);
// @override
void thread_on_init(void);
// @override
void proc_on_bind(acl::socket_stream& stream);
// @override
void proc_on_init(void);
// @override
void proc_on_exit(void);
// @override
bool proc_on_sighup(acl::string&);
private:
void open_db(void);
};