Multiplexor.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Multiplexor.inl,v 4.2 2005/10/28 16:14:53 ossama Exp
00004 
00005 #if 0
00006 
00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00008 
00009 int
00010 Driver::link_from_below (ACE_Module *stream_head)
00011 {
00012   ACE_TRACE ("Driver::link_from_below");
00013   ACE_Module *stream_tail = this->alloc_module (this);
00014 
00015   stream_head->link (stream_tail);
00016   if (stream_tail->reader ()->open () == -1
00017       || stream_tail->writer ()->open () == -1)
00018     {
00019       stream_tail->close ();
00020       return -1;
00021     }
00022   return 0;
00023 }
00024 
00025 int
00026 Driver::unlink_from_below (ACE_Module *)
00027 {
00028   ACE_TRACE ("Driver::unlink_from_below");
00029   return -1;
00030 }
00031 
00032 ACE_Multiplexor::ACE_Multiplexor (void)
00033 {
00034   ACE_TRACE ("ACE_Multiplexor::ACE_Multiplexor");
00035 }
00036 
00037 ACE_Multiplexor::~ACE_Multiplexor (void)
00038 {
00039   ACE_TRACE ("ACE_Multiplexor::~ACE_Multiplexor");
00040 }
00041 
00042 int
00043 ACE_Multiplexor::link_from_above (Driver &ld)
00044 {
00045   ACE_TRACE ("ACE_Multiplexor::link_from_above");
00046   return ld.link_from_below (this->alloc_lower_module (this));
00047 }
00048 
00049 int
00050 ACE_Multiplexor::link_from_above (ACE_Multiplexor &lm)
00051 {
00052   ACE_TRACE ("ACE_Multiplexor::link_from_above");
00053   return lm.link_from_below (this->alloc_lower_module (this));
00054 }
00055 
00056 int
00057 ACE_Multiplexor::link_from_below (ACE_Module *stream_head)
00058 {
00059   ACE_TRACE ("ACE_Multiplexor::link_from_below");
00060   ACE_Module *stream_tail = this->alloc_upper_module (this);
00061 
00062   stream_head->link (stream_tail);
00063   if (stream_tail->reader ()->open () == -1
00064       || stream_tail->writer ()->open () == -1)
00065     {
00066       stream_tail->close ();
00067       return -1;
00068     }
00069   return 0;
00070 }
00071 
00072 int
00073 ACE_Multiplexor::unlink_from_above (Driver &)
00074 {
00075   ACE_TRACE ("ACE_Multiplexor::unlink_from_above");
00076   return -1;
00077 }
00078 
00079 int
00080 ACE_Multiplexor::unlink_from_above (ACE_Multiplexor &)
00081 {
00082   ACE_TRACE ("ACE_Multiplexor::unlink_from_above");
00083   return -1;
00084 }
00085 
00086 int
00087 ACE_Multiplexor::unlink_from_below (ACE_Module *)
00088 {
00089   ACE_TRACE ("ACE_Multiplexor::unlink_from_below");
00090   return -1;
00091 }
00092 
00093 ACE_END_VERSIONED_NAMESPACE_DECL
00094 
00095 #endif /*  0 */

Generated on Thu Nov 9 09:41:57 2006 for ACE by doxygen 1.3.6