server_timer.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 42 行
H
42 行
/**
* @file Server_Timer.h
*
* Server_Timer.h,v 1.2 2003/07/21 23:51:39 dhinton Exp
*
* @author Carlos O'Ryan <coryan@atdesk.com>
*
*/
#ifndef Server_Timer__h_
#define Server_Timer__h_
#include /**/ "ace/pre.h"
#include "TestC.h"
#include "ace/Event_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class Server_Timer : public ACE_Event_Handler
{
public:
/// Constructor
Server_Timer (Test::Echo_ptr echo, ACE_Reactor * reactor);
void activate (void);
/// Thread entry point
int handle_timeout(ACE_Time_Value const & tv, void const *);
int handle_close (ACE_HANDLE, ACE_Reactor_Mask);
private:
/// Reference to the test interface
Test::Echo_var echo_;
int refcnt_;
};
#include /**/ "ace/post.h"
#endif /* Server_Timer__h_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?