blob: 3722af79fb7a4d071bfba066d621bff98337114b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/**
* @file
*
* $Id$
*
* @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_ */
|