]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/delphi/test/multiplexed/Multiplex.Test.Client.dpr
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / thrift / lib / delphi / test / multiplexed / Multiplex.Test.Client.dpr
1 (*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *)
19
20
21 program Multiplex.Test.Client;
22
23 {$APPTYPE CONSOLE}
24
25 uses
26 SysUtils,
27 Multiplex.Client.Main in 'Multiplex.Client.Main.pas',
28 Thrift in '..\..\src\Thrift.pas',
29 Thrift.Socket in '..\..\src\Thrift.Socket.pas',
30 Thrift.Exception in '..\..\src\Thrift.Exception.pas',
31 Thrift.Transport in '..\..\src\Thrift.Transport.pas',
32 Thrift.Transport.Pipes in '..\..\src\Thrift.Transport.Pipes.pas',
33 Thrift.Protocol in '..\..\src\Thrift.Protocol.pas',
34 Thrift.Protocol.Multiplex in '..\..\src\Thrift.Protocol.Multiplex.pas',
35 Thrift.Collections in '..\..\src\Thrift.Collections.pas',
36 Thrift.Server in '..\..\src\Thrift.Server.pas',
37 Thrift.Stream in '..\..\src\Thrift.Stream.pas',
38 Thrift.TypeRegistry in '..\..\src\Thrift.TypeRegistry.pas',
39 Thrift.WinHTTP in '..\..\src\Thrift.WinHTTP.pas',
40 Thrift.Utils in '..\..\src\Thrift.Utils.pas';
41
42 var
43 nParamCount : Integer;
44 args : array of string;
45 i : Integer;
46 arg : string;
47 s : string;
48
49 begin
50 try
51 Writeln( 'Multiplex TestClient '+Thrift.Version);
52 nParamCount := ParamCount;
53 SetLength( args, nParamCount);
54 for i := 1 to nParamCount do
55 begin
56 arg := ParamStr( i );
57 args[i-1] := arg;
58 end;
59 TTestClient.Execute( args );
60 Readln;
61 except
62 on E: Exception do begin
63 Writeln(E.ClassName, ': ', E.Message);
64 ExitCode := $FFFF;
65 end;
66 end;
67 end.
68