acl/app/master/daemon/manage/manager.h

35 lines
540 B
C
Raw Normal View History

2017-06-14 17:42:05 +08:00
/**
* Copyright (C) 2015-2018
* All rights reserved.
*
* AUTHOR(S)
* Zheng Shuxin
* E-mail: zhengshuxin@qiyi.com
*
* VERSION
* Wed 14 Jun 2017 05:29:20 PM CST
*/
#pragma once
#include "http_server.h"
class manager : public acl::singleton<manager>
{
public:
manager(void);
2017-06-15 11:28:01 +08:00
~manager(void);
2017-06-14 17:42:05 +08:00
2017-06-26 13:19:43 +08:00
void init(ACL_EVENT* event, const char* addr, int timeout);
2017-06-15 11:28:01 +08:00
ACL_AIO* get_aio(void) const
{
return aio_;
}
2017-06-14 17:42:05 +08:00
private:
2017-06-15 11:28:01 +08:00
ACL_EVENT* event_;
ACL_AIO* aio_;
acl::aio_handle* handle_;
http_server* server_;
2017-06-14 17:42:05 +08:00
};