Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Multiplexor.i

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

Generated on Mon Jun 16 11:20:27 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002