2022-04-30 14:56:38 +08:00
|
|
|
#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&);
|
2022-05-01 09:00:08 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
void open_db(void);
|
2022-04-30 14:56:38 +08:00
|
|
|
};
|