1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
12 import test
.Ice
.udp
.Test
.*;
14 public class Client
extends test
.Util
.Application
16 public int run(String
[] args
)
18 AllTests
.allTests(communicator());
23 num
= args
.length
== 1 ? Integer
.parseInt(args
[0]) : 0;
25 catch(NumberFormatException ex
)
29 for(int i
= 0; i
< num
; ++i
)
31 TestIntfPrxHelper
.uncheckedCast(communicator().stringToProxy("control:tcp -p " + (12010 + i
))).shutdown();
36 protected Ice
.InitializationData
getInitData(Ice
.StringSeqHolder argsH
)
38 Ice
.InitializationData initData
= new Ice
.InitializationData();
39 initData
.properties
= Ice
.Util
.createProperties(argsH
);
40 initData
.properties
.setProperty("Ice.Package.Test", "test.Ice.udp");
41 initData
.properties
.setProperty("Ice.Warn.Connections", "0");
42 initData
.properties
.setProperty("Ice.UDP.RcvSize", "16384");
43 initData
.properties
.setProperty("Ice.UDP.SndSize", "16384");
47 public static void main(String
[] args
)
49 Client c
= new Client();
50 int status
= c
.main("Client", args
);