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 Member Functions

 TAO_Blocked_Connect_Strategy (TAO_ORB_Core *orb)
 Constructor.

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


Protected Member Functions

virtual int wait_i (TAO_LF_Event *ev, TAO_Transport *t, ACE_Time_Value *val)
 This is the method that does all the real interesting stuff.


Detailed Description

Concrete implementation of a connect strategy that blocks during connects.

Definition at line 32 of file Blocked_Connect_Strategy.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Blocked_Connect_Strategy::TAO_Blocked_Connect_Strategy TAO_ORB_Core orb  ) 
 

Constructor.

Definition at line 12 of file Blocked_Connect_Strategy.cpp.

00014   : TAO_Connect_Strategy (orb_core)
00015 {
00016 }


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 19 of file Blocked_Connect_Strategy.cpp.

References ACE_Synch_Options::set().

00021 {
00022   if (timeout != 0)
00023     {
00024       // Blocking with a timeout
00025       options.set (ACE_Synch_Options::USE_TIMEOUT,
00026                    *timeout);
00027     }
00028   else
00029     {
00030       // Making it sure it is blocking.
00031       options.set (0,
00032                    ACE_Time_Value::zero);
00033     }
00034 }

int TAO_Blocked_Connect_Strategy::wait_i TAO_LF_Event ev,
TAO_Transport t,
ACE_Time_Value val
[protected, virtual]
 

This is the method that does all the real interesting stuff.

Implements TAO_Connect_Strategy.

Definition at line 37 of file Blocked_Connect_Strategy.cpp.

00040 {
00041   // We cannot wait for connection completion
00042   return -1;
00043 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:12:27 2006 for TAO by doxygen 1.3.6