blob: 18e022ac9115056e85e7e855378dda40055c16ef (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/* -*- C++ -*- */
// $Id$
// Multiplexor.i
#if 0
int
Driver::link_from_below (ACE_Module *stream_head)
{
ACE_TRACE ("Driver::link_from_below");
ACE_Module *stream_tail = this->alloc_module (this);
stream_head->link (stream_tail);
if (stream_tail->reader ()->open () == -1
|| stream_tail->writer ()->open () == -1)
{
stream_tail->close ();
return -1;
}
return 0;
}
int
Driver::unlink_from_below (ACE_Module *)
{
ACE_TRACE ("Driver::unlink_from_below");
return -1;
}
ACE_Multiplexor::ACE_Multiplexor (void)
{
ACE_TRACE ("ACE_Multiplexor::ACE_Multiplexor");
}
ACE_Multiplexor::~ACE_Multiplexor (void)
{
ACE_TRACE ("ACE_Multiplexor::~ACE_Multiplexor");
}
int
ACE_Multiplexor::link_from_above (Driver &ld)
{
ACE_TRACE ("ACE_Multiplexor::link_from_above");
return ld.link_from_below (this->alloc_lower_module (this));
}
int
ACE_Multiplexor::link_from_above (ACE_Multiplexor &lm)
{
ACE_TRACE ("ACE_Multiplexor::link_from_above");
return lm.link_from_below (this->alloc_lower_module (this));
}
int
ACE_Multiplexor::link_from_below (ACE_Module *stream_head)
{
ACE_TRACE ("ACE_Multiplexor::link_from_below");
ACE_Module *stream_tail = this->alloc_upper_module (this);
stream_head->link (stream_tail);
if (stream_tail->reader ()->open () == -1
|| stream_tail->writer ()->open () == -1)
{
stream_tail->close ();
return -1;
}
return 0;
}
int
ACE_Multiplexor::unlink_from_above (Driver &)
{
ACE_TRACE ("ACE_Multiplexor::unlink_from_above");
return -1;
}
int
ACE_Multiplexor::unlink_from_above (ACE_Multiplexor &)
{
ACE_TRACE ("ACE_Multiplexor::unlink_from_above");
return -1;
}
int
ACE_Multiplexor::unlink_from_below (ACE_Module *)
{
ACE_TRACE ("ACE_Multiplexor::unlink_from_below");
return -1;
}
#endif /* 0 */
|