[omniORB] A small patch to the bi-directional example

Slava Garelin garelin@ukr.net
Mon Sep 23 11:16:01 2002


On Sunday 22 September 2002 02:03, Duncan Grisby wrote:
> On Thursday 19 September, Vladimir Panov wrote:
> > The bi-directional example in its current form doesn't work.
> >
> > In src/examples/bidir/bd_client.cc, main():
> > move the intialization of the server object reference after the creation
> > of the bi-directional POA.
> >
> > Also, the instructions in src/examples/bidir/README are incorrect:
> > a single asterisk should be inserted before "unix,tcp,bidir" in both
> > serverTransportRule and clientTransportRule examples.
>
> Thanks for pointing the problems out. They have been fixed.

BTW, I use 

#define ADD_BIDIR_POLICY(_PAR_POLICY_) \
{\
  BiDirPolicy::BidirectionalPolicy_var bidir_policy = \
    new BiDirPolicy::BidirectionalPolicy(BiDirPolicy::BOTH);\
  _PAR_POLICY_ = BiDirPolicy::BidirectionalPolicy::_duplicate(bidir_policy);\
}
 
for avoid Any using. That right?

-- 
Slava Garelin