Hi, first please try to correct your "IDL::black_board:1.0" to "IDL:black_board:1.0". If it still does not work, I would advice to read some of POA sources. I'm not sure it supports MICO binder.
Cheers, Karel Yi Zhao wrote: > hi, all, when I try to connect to server by inet adderss from client, I > failed, can anyone help me? thanks very much. > > first, I create my server program as below: > #-----------------server------------------ > #include <iostream> > #include "black_board_impl.h" > using namespace std; > int main(int argc, char *argv[]) > { > CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "mico-local-orb"); > CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA"); > PortableServer::POA_var poa = PortableServer::POA::_narrow (obj); > PortableServer::POAManager_var mgr = poa->the_POAManager(); > blackboard * servant = new blackboard; > PortableServer::ObjectId_var oid = poa->activate_object (servant); > mgr->activate(); > orb->run (); > return 0; > } > #-------------- > I start the server by the command: ./myprogram -ORBIIOPAddr > inet:127.0.0.1:12123 > > I try to connect to server by inet address as below, but, I failed, can any > one tell my the reason? > #-----------------client------------------ > CORBA::ORB_var Orb = CORBA::ORB_init(argc, argv, "mico-local-orb"); > CORBA::Object_var Obj = Orb->bind("IDL::black_board:1.0", > "inet:127.0.0.1:12123"); > if (CORBA::is_nil (Obj)) { > cout << "cannot bind to server addr" << endl; > return 1; > } else { > cout << "bind to server addr successfully" << endl; > } > > > thanks very much!!! > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mico-devel mailing list > Mico-devel@mico.org > http://www.mico.org/mailman/listinfo/mico-devel -- Karel Gardas kgar...@objectsecurity.com ObjectSecurity Ltd. http://www.objectsecurity.com _______________________________________________ Mico-devel mailing list Mico-devel@mico.org http://www.mico.org/mailman/listinfo/mico-devel