~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cs/test/Ice/udp/Client.cs

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
22
22
{
23
23
    private static int run(string[] args, Ice.Communicator communicator)
24
24
    {
25
 
        TestIntfPrx obj = AllTests.allTests(communicator);
26
 
        obj.shutdown();
 
25
        AllTests.allTests(communicator);
 
26
 
 
27
        int num;
 
28
        try 
 
29
        {
 
30
            num = args.Length == 1 ? System.Int32.Parse(args[0]) : 0;
 
31
        }
 
32
        catch(System.FormatException)
 
33
        {
 
34
            num = 0;
 
35
        }
 
36
        for(int i = 0; i < num; ++i)
 
37
        {
 
38
            TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("control:tcp -p " + (12010 + i))).shutdown();
 
39
        }
27
40
        return 0;
28
41
    }
29
42