summaryrefslogtreecommitdiff
path: root/ACE/ace/Multiplexor.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Multiplexor.inl')
-rw-r--r--ACE/ace/Multiplexor.inl95
1 files changed, 95 insertions, 0 deletions
diff --git a/ACE/ace/Multiplexor.inl b/ACE/ace/Multiplexor.inl
new file mode 100644
index 00000000000..76e9d267006
--- /dev/null
+++ b/ACE/ace/Multiplexor.inl
@@ -0,0 +1,95 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#if 0
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+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;
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* 0 */