blob: 5e013b65422eade542e61e7efdee685a474288d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
import Ice
import TestCommon
class Client: TestHelperI {
public override func run(args: [String]) throws {
do {
var restArgs = args
let properties = try createTestProperties(&restArgs)
properties.setProperty(key: "Ice.Warn.Connections", value: "0")
properties.setProperty(key: "Ice.UDP.SndSize", value: "16384")
let communicator = try initialize(properties)
defer {
communicator.destroy()
}
try allTests(self)
let num = restArgs.count == 4 ? Int(restArgs[3]) : 1
for i in 0 ..< (num ?? 1) {
let prx = try communicator.stringToProxy("control:\(getTestEndpoint(num: Int32(i), prot: "tcp"))")!
try uncheckedCast(prx: prx, type: TestIntfPrx.self).shutdown()
}
}
}
}
|