I´m working with Ice-E to build a PocketPC server using VS 2005.
I create the server as usual:
Ice::CommunicatorPtr communicator;
Ice::ObjectAdapterPtr adapter;
try
{
int argc = 0;
Ice::PropertiesPtr properties = Ice::createProperties();
properties->setProperty("CClie.Endpoints", "tcp -p 20000");
communicator = Ice::initializeWithProperties(argc, 0, properties);
adapter = communicator->createObjectAdapter("CClie");
Ice::ObjectPtr servant = new clienteI(dlg.getVideoDlg());
adapter->add(servant, Ice::stringToIdentity("cclie"));
adapter->activate();
}
catch(const Ice::Exception& ex)
{
AfxMessageBox(CString(ex.toString().c_str()), MB_OK|MB_ICONEXCLAMATION);
return FALSE;
}
But, when I try to access from client I've got a WSACONNECTIONREFUSED exception.
I have a Win32 version of this server and it works fine so the client-side code it´s ok.

Reply With Quote

