diff options
Diffstat (limited to 'cpp/test/Ice/operations/Server.cpp')
-rw-r--r-- | cpp/test/Ice/operations/Server.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/test/Ice/operations/Server.cpp b/cpp/test/Ice/operations/Server.cpp index f05b2d93c2d..0bf6a159aba 100644 --- a/cpp/test/Ice/operations/Server.cpp +++ b/cpp/test/Ice/operations/Server.cpp @@ -16,17 +16,17 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - Ice::PropertiesPtr properties = communicator->getProperties();
-
- string protocol = properties->getProperty("Ice.Protocol");
-
- if (protocol.empty())
- {
- protocol = "tcp";
- }
-
- string endpts = protocol + " -p 12345 -t 2000";
-
+ Ice::PropertiesPtr properties = communicator->getProperties(); + + string protocol = properties->getProperty("Ice.Protocol"); + + if (protocol.empty()) + { + protocol = "tcp"; + } + + string endpts = protocol + " -p 12345 -t 2000"; + Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new MyDerivedClassI(adapter, "test"); adapter->add(object, "test"); |