Concrete implementation of a connect strategy that blocks during connects. More...
#include <Blocked_Connect_Strategy.h>
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. |
Concrete implementation of a connect strategy that blocks during connects.
Definition at line 32 of file Blocked_Connect_Strategy.h.
TAO_Blocked_Connect_Strategy::TAO_Blocked_Connect_Strategy | ( | TAO_ORB_Core * | orb | ) |
Constructor.
Definition at line 12 of file Blocked_Connect_Strategy.cpp.
: TAO_Connect_Strategy (orb_core) { }
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.
{ if (timeout != 0) { // Blocking with a timeout options.set (ACE_Synch_Options::USE_TIMEOUT, *timeout); } else { // Making it sure it is blocking. options.set (0, ACE_Time_Value::zero); } }
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.
{ // We cannot wait for connection completion return -1; }