blob: 2ab673fc2f00a2578f52e3f5de105ba3f622c693 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// $Id$
#include "JAWS/Data_Block.h"
#include "JAWS/Policy.h"
JAWS_Pipeline_Handler *
JAWS_Data_Block::task (void)
{
return this->task_;
}
JAWS_IO_Handler *
JAWS_Data_Block::handler (void)
{
return this->handler_;
}
JAWS_Dispatch_Policy *
JAWS_Data_Block::policy (void)
{
return this->policy_;
}
void
JAWS_Data_Block::task (JAWS_Pipeline_Handler *taskp)
{
this->task_ = taskp;
}
void
JAWS_Data_Block::handler (JAWS_IO_Handler *handlerp)
{
this->handler_ = handlerp;
}
void
JAWS_Data_Block::policy (JAWS_Dispatch_Policy *policyp)
{
this->policy_ = policyp;
}
int
JAWS_Pipeline_Accept_Task::handle_put (JAWS_Data_Block *data,
ACE_Time_Value *)
{
/* JAWS_Data_Block should contain an INET_Addr and an IO */
// JAWS_IO_Handler *handler = data->handler ();
JAWS_Dispatch_Policy *policy = data->policy ();
// data->policy ()->update (handler);
JAWS_IO *io = policy->io ();
// io->accept (data->addr ());
return 0;
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class JAWS_Pipeline_Abstract_Handler<JAWS_Data_Block>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate JAWS_Pipeline_Abstract_Handler<JAWS_Data_Block>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
|