Next: Configuring the PaCO++ layer
Up: Writing the client part
Previous: Include files
Contents
Before the first parallel invocation, we have to get a pointer to the parallel server and we have to
configure the PaCO++ stubs.
Instead to use the narrow operation, you to use the
PaCO_narrow operation supplied by PaCO++. After the object pointer
can be used has a classic CORBA pointer. But you have a
parallel object pointer. If you want to have a CORBA pointer
to give it to an another object, you have to use the
PaCO_unarrow operation.
Example :
- Before PaCO++ : Basic::Example * serv = Basic::Example::_narrow(obj);
- With PaCO++ : Basic::PaCO_Example * serv = (Basic::PaCO_Example *) Basic::PaCO_Example::PaCO_narrow(obj, orb);
2013-04-10