summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/udp/Server.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/udp/Server.cs')
-rw-r--r--csharp/test/Ice/udp/Server.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/csharp/test/Ice/udp/Server.cs b/csharp/test/Ice/udp/Server.cs
index 71d7f8c581f..dbffc6f8f11 100644
--- a/csharp/test/Ice/udp/Server.cs
+++ b/csharp/test/Ice/udp/Server.cs
@@ -8,6 +8,7 @@
// **********************************************************************
using System;
+using System.Text;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -43,16 +44,17 @@ public class Server : TestCommon.Application
adapter2.activate();
}
- string endpoint;
+ StringBuilder endpoint = new StringBuilder();
if(properties.getProperty("Ice.IPv6").Equals("1"))
{
- endpoint = "udp -h \"ff15::1:1\" -p 12020";
+ endpoint.Append("udp -h \"ff15::1:1\" -p ");
}
else
{
- endpoint = "udp -h 239.255.1.1 -p 12020";
+ endpoint.Append("udp -h 239.255.1.1 -p ");
}
- properties.setProperty("McastTestAdapter.Endpoints", endpoint);
+ endpoint.Append(getTestPort(properties, 10));
+ properties.setProperty("McastTestAdapter.Endpoints", endpoint.ToString());
Ice.ObjectAdapter mcastAdapter = communicator().createObjectAdapter("McastTestAdapter");
mcastAdapter.add(new TestIntfI(), Ice.Util.stringToIdentity("test"));
mcastAdapter.activate();