mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 17:00:52 +08:00
9697f95b8f
This reverts commit 15d999759e
.
31 lines
488 B
C++
31 lines
488 B
C++
#pragma once
|
|
|
|
class udp_service : public acl::master_udp
|
|
{
|
|
public:
|
|
udp_service(void);
|
|
~udp_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:
|
|
acl::thread_pool* threads_;
|
|
};
|