summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/facets/Server.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-11-13 20:28:08 +0000
committerMarc Laukien <marc@zeroc.com>2001-11-13 20:28:08 +0000
commit7d200cf8404655ce2e0ba62360d7030b67eb8514 (patch)
tree9de4d4a471480bb30a4bad05fcb3859a47a1b09e /cpp/test/Ice/facets/Server.cpp
parentAdded for testing purposes. "cacert.pem" is a self-signed Mutable Realms CA (diff)
downloadice-7d200cf8404655ce2e0ba62360d7030b67eb8514.tar.bz2
ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.tar.xz
ice-7d200cf8404655ce2e0ba62360d7030b67eb8514.zip
fixes
Diffstat (limited to 'cpp/test/Ice/facets/Server.cpp')
-rw-r--r--cpp/test/Ice/facets/Server.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/cpp/test/Ice/facets/Server.cpp b/cpp/test/Ice/facets/Server.cpp
index 07ffaffa3d9..35c7805b1dc 100644
--- a/cpp/test/Ice/facets/Server.cpp
+++ b/cpp/test/Ice/facets/Server.cpp
@@ -16,27 +16,27 @@ 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";
- }
-
+ 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 d = new DI;
adapter->add(d, "d");
- d->_addFacet(d, "facetABCD");
- d->_addFacet(new FI, "facetEF");
- d->_addFacet(new GI(communicator), "facetG");
+ d->_ice_addFacet(d, "facetABCD");
+ d->_ice_addFacet(new FI, "facetEF");
+ d->_ice_addFacet(new GI(communicator), "facetG");
adapter->activate();
communicator->waitForShutdown();
- d->_removeAllFacets(); // Break cyclic dependencies
+ d->_ice_removeAllFacets(); // Break cyclic dependencies
return EXIT_SUCCESS;
}