mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
42 lines
748 B
C++
42 lines
748 B
C++
#pragma once
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// ÅäÖÃÄÚÈÝÏî
|
|
|
|
class tcp_service : public acl::master_threads
|
|
{
|
|
public:
|
|
tcp_service(void);
|
|
~tcp_service(void);
|
|
|
|
protected:
|
|
// @override
|
|
bool thread_on_read(acl::socket_stream* conn);
|
|
|
|
// @override
|
|
bool thread_on_accept(acl::socket_stream* conn);
|
|
|
|
// @override
|
|
void thread_on_close(acl::socket_stream* conn);
|
|
|
|
// @override
|
|
bool thread_on_timeout(acl::socket_stream* conn);
|
|
|
|
// @override
|
|
void thread_on_init(void);
|
|
|
|
// @override
|
|
void thread_on_exit(void);
|
|
|
|
// @override
|
|
void proc_on_init(void);
|
|
|
|
// @override
|
|
void proc_on_exit(void);
|
|
|
|
// @override
|
|
bool proc_on_sighup(acl::string&);
|
|
|
|
private:
|
|
};
|