|
|
@ -23,11 +23,11 @@ main(int argc, char* argv[]) |
|
|
|
try |
|
|
|
{ |
|
|
|
Ice::CommunicatorHolder ich(argc, argv); |
|
|
|
auto adapter = ich->createObjectAdapterWithEndpoints("SimplePrinterAdapter", "default -p 10000"); |
|
|
|
cout << "\n Test server for MW | pedro@defaultdrop.net " << endl; |
|
|
|
auto adapter = ich->createObjectAdapterWithEndpoints("SimplePrinterAdapter", "ws -p 10000"); |
|
|
|
auto servant = make_shared<PrinterI>(); |
|
|
|
adapter->add(servant, Ice::stringToIdentity("SimplePrinter")); |
|
|
|
adapter->add(servant, Ice::stringToIdentity("print")); |
|
|
|
adapter->activate(); |
|
|
|
cout << "\n +++> Test server for MagicWorld <+++ \n" << endl; |
|
|
|
ich->waitForShutdown(); |
|
|
|
|
|
|
|
} |
|
|
|