Using the Naming Service
Using the Naming Service
// Client Code
nameserv_ptr pns;
pns = NameServer::_bind(“:NS”,” “);
// obtain a reference to a registered object
CORBA::Object_ptr pobject;
pns->ResolveName(“daqevnot”, pobject );
// Server Code to Register Objects
En_ptr pevnot = new TIE_EN(evnot_i)
(new EN_I(),”daqevnot”);
pns->BindName(“daqevnot”,pevnot);