ORB_ptr ORB_init (int& <argc>; char** <argv>, ORBid <orb_identifier>, CORBA::Environment& <env>=chooseDefaultEnv( ))
The predefined CORBA module contains interfaces to the ORB services. The first step that needs to be performed is the ORB initialization. This is done using the ORB_init
operation.
Every application must call ORB_init
upon startup. ORB_init
initializes a client or server connection to NonStop DOM systems.
ORB_init
should be called (directly or indirectly) from main( )
. ORB_init
should not be called during the C++ static initialization phase. It must be called after the initialization phase.
ORB_init( ) has the following parameters:
<argc>
<argv>
.
<argv>
<orb_identifier>
is a null string of the form:
-ORB <suffix> <value>
<suffix>
is the option that you set and <value>
is the value you set it to. Strings in other formats are ignored.
<orb_identifier>
<argv>
are checked.