mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
35 lines
602 B
C++
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);
|
|
};
|