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

TAO_Blocked_Connect_Strategy Class Reference

Concrete implementation of a connect strategy that blocks during connects. More...

#include <Blocked_Connect_Strategy.h>

Inheritance diagram for TAO_Blocked_Connect_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Blocked_Connect_Strategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Blocked_Connect_Strategy (TAO_ORB_Core *orb)
 Contructor. More...

 ~TAO_Blocked_Connect_Strategy (void)
 Destructor. More...

virtual void synch_options (ACE_Time_Value *val, ACE_Synch_Options &opt)
 Obtain the synch options that can be passed to ACE_Connector. More...

virtual int wait (TAO_Connection_Handler *ch, ACE_Time_Value *val)
 Wait for the connection to be completed till a timeout occurs. More...


Detailed Description

Concrete implementation of a connect strategy that blocks during connects.

Definition at line 31 of file Blocked_Connect_Strategy.h.


Constructor & Destructor Documentation

TAO_Blocked_Connect_Strategy::TAO_Blocked_Connect_Strategy TAO_ORB_Core   orb
 

Contructor.

Definition at line 12 of file Blocked_Connect_Strategy.cpp.

00014   : TAO_Connect_Strategy (orb_core)
00015 {
00016 }

TAO_Blocked_Connect_Strategy::~TAO_Blocked_Connect_Strategy void   
 

Destructor.

Definition at line 18 of file Blocked_Connect_Strategy.cpp.

00019 {
00020 }


Member Function Documentation

void TAO_Blocked_Connect_Strategy::synch_options ACE_Time_Value   val,
ACE_Synch_Options   opt
[virtual]
 

Obtain the synch options that can be passed to ACE_Connector.

Implements TAO_Connect_Strategy.

Definition at line 24 of file Blocked_Connect_Strategy.cpp.

References ACE_Synch_Options::set, ACE_Synch_Options::USE_TIMEOUT, and ACE_Time_Value::zero.

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 }

int TAO_Blocked_Connect_Strategy::wait TAO_Connection_Handler   ch,
ACE_Time_Value   val
[virtual]
 

Wait for the connection to be completed till a timeout occurs.

Implements TAO_Connect_Strategy.

Definition at line 43 of file Blocked_Connect_Strategy.cpp.

00045 {
00046   // We cannot wait for connection completion
00047   return -1;
00048 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:04:51 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002