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

Blocked_Connect_Strategy.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 #include "Blocked_Connect_Strategy.h"
00003 #include "Connection_Handler.h"
00004 #include "ace/Synch_Options.h"
00005 
00006 
00007 ACE_RCSID(tao,
00008           Blocked_Connect_Strategy,
00009           "$Id: Blocked_Connect_Strategy.cpp,v 1.1.1.1.2.1 2003/03/14 16:05:12 chad Exp $")
00010 
00011 
00012 TAO_Blocked_Connect_Strategy::TAO_Blocked_Connect_Strategy (
00013     TAO_ORB_Core *orb_core)
00014   : TAO_Connect_Strategy (orb_core)
00015 {
00016 }
00017 
00018 TAO_Blocked_Connect_Strategy::~TAO_Blocked_Connect_Strategy (void)
00019 {
00020 }
00021 
00022 
00023 void
00024 TAO_Blocked_Connect_Strategy::synch_options (ACE_Time_Value *timeout,
00025                                              ACE_Synch_Options &options)
00026 {
00027   if (timeout != 0)
00028     {
00029       // Blocking with a timeout
00030       options.set (ACE_Synch_Options::USE_TIMEOUT,
00031                    *timeout);
00032     }
00033   else
00034     {
00035       // Making it sure it is blocking.
00036       options.set (0,
00037                    ACE_Time_Value::zero);
00038     }
00039 }
00040 
00041 
00042 int
00043 TAO_Blocked_Connect_Strategy::wait (TAO_Connection_Handler *,
00044                                     ACE_Time_Value * )
00045 {
00046   // We cannot wait for connection completion
00047   return -1;
00048 }

Generated on Mon Jun 16 13:48:01 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002