mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 17:00:52 +08:00
9697f95b8f
This reverts commit 15d999759e
.
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:
|
|
};
|