26 #include <mico/throw.h> 29 template <
class T,
class Tvar>
37 if(iname == NULL)
return;
38 idlname =
new char[strlen(iname)+1];
40 for(
int i=0; i<ac; i++)
42 if(strncmp(av[i],
"inet:",5) == 0)
44 if(
adr != NULL)
delete adr;
45 adr =
new char[strlen(av[i])+1];
49 orb = CORBA::ORB_init(ac,av);
51 if(CORBA::is_nil(
obj))
53 cerr <<
"cannot bind to " <<
adr << endl;
61 cerr <<
"Argument is not a " <<
idlname <<
" reference" << endl;
67 if(
adr != NULL)
delete adr;
73 CORBA::Object_var
obj;
77 template <
class Timpl,
class Tvar>
84 orb = CORBA::ORB_init(ac,av);
85 obj =
orb->resolve_initial_references(
"RootPOA");
86 poa = PortableServer::POA::_narrow(
obj);
87 mgr =
poa->the_POAManager();
89 CORBA::String_var str =
orb->object_to_string(
server);
104 PortableServer::POA_var
poa;
105 PortableServer::POAManager_var
mgr;
PortableServer::POA_var poa
rlCorbaServer(int ac, char **av, const char *)
rlCorbaClient(int ac, char **av, const char *iname)
PortableServer::POAManager_var mgr