diff options
author | Jose <jose@zeroc.com> | 2012-07-17 16:53:05 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-07-17 16:53:05 +0200 |
commit | 9e833a51504b14ac852863dcad59a51e6025ce79 (patch) | |
tree | 6ca0297b6e6575fe4c6b2d48b606fef8132b9e5a /cpp/test/Ice/udp/Server.cpp | |
parent | implementing optional params in Java (diff) | |
parent | WinRT support (diff) | |
download | ice-9e833a51504b14ac852863dcad59a51e6025ce79.tar.bz2 ice-9e833a51504b14ac852863dcad59a51e6025ce79.tar.xz ice-9e833a51504b14ac852863dcad59a51e6025ce79.zip |
Merge branch 'master' into encoding11
Conflicts:
CHANGES
cpp/src/Ice/EndpointI.cpp
cpp/src/Ice/TcpConnector.cpp
cpp/src/Ice/TcpConnector.h
cpp/src/Ice/UdpConnector.cpp
cpp/src/Ice/UdpConnector.h
Diffstat (limited to 'cpp/test/Ice/udp/Server.cpp')
-rw-r--r-- | cpp/test/Ice/udp/Server.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/test/Ice/udp/Server.cpp b/cpp/test/Ice/udp/Server.cpp index 081b11b7998..e5ed3b505f7 100644 --- a/cpp/test/Ice/udp/Server.cpp +++ b/cpp/test/Ice/udp/Server.cpp @@ -8,8 +8,11 @@ // ********************************************************************** #include <Ice/Ice.h> +#include <TestCommon.h> #include <TestI.h> +DEFINE_TEST("server") + using namespace std; int @@ -17,7 +20,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { Ice::PropertiesPtr properties = communicator->getProperties(); - int num = argc == 2 ? atoi(argv[1]) : -1; + int num = argc == 2 ? atoi(argv[1]) : 0; ostringstream os; os << "tcp -p " << (12010 + num); @@ -48,6 +51,8 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) mcastAdapter->add(new TestIntfI, communicator->stringToIdentity("test")); mcastAdapter->activate(); + TEST_READY + communicator->waitForShutdown(); return EXIT_SUCCESS; } |