blob: 307a9c2dc70ff2473f7972ee225dba0f0ab2fccb [file] [log] [blame]
Jens Geyer8a701962013-03-25 01:28:12 +02001(*
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
20program Multiplex.Test.Server;
21
22{$APPTYPE CONSOLE}
23
24uses
Jens Geyerd5436f52014-10-03 19:50:38 +020025 SysUtils,
26 Multiplex.Server.Main in 'Multiplex.Server.Main.pas',
Jens Geyer3d556242018-01-24 19:14:32 +010027 ConsoleHelper in '..\ConsoleHelper.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020028 Thrift in '..\..\src\Thrift.pas',
Jens Geyer606f1ef2018-04-09 23:09:41 +020029 Thrift.Exception in '..\..\src\Thrift.Exception.pas',
Jens Geyerbea9bbe2016-04-20 00:02:40 +020030 Thrift.Socket in '..\..\src\Thrift.Socket.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020031 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.Processor.Multiplex in '..\..\src\Thrift.Processor.Multiplex.pas',
Jens Geyera019cda2019-11-09 23:24:52 +010036 Thrift.Configuration in '..\..\src\Thrift.Configuration.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020037 Thrift.Collections in '..\..\src\Thrift.Collections.pas',
38 Thrift.Server in '..\..\src\Thrift.Server.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020039 Thrift.Utils in '..\..\src\Thrift.Utils.pas',
Jens Geyer02230912019-04-03 01:12:51 +020040 Thrift.WinHTTP in '..\..\src\Thrift.WinHTTP.pas',
Jens Geyereab29a02014-11-09 23:32:50 +010041 Thrift.TypeRegistry in '..\..\src\Thrift.TypeRegistry.pas',
Jens Geyerd5436f52014-10-03 19:50:38 +020042 Thrift.Stream in '..\..\src\Thrift.Stream.pas';
43
Jens Geyer8a701962013-03-25 01:28:12 +020044var
45 nParamCount : Integer;
46 args : array of string;
47 i : Integer;
48 arg : string;
49 s : string;
50
51begin
52 try
53 Writeln( 'Multiplex TestServer '+Thrift.Version);
54 nParamCount := ParamCount;
55 SetLength( args, nParamCount);
56 for i := 1 to nParamCount do
57 begin
58 arg := ParamStr( i );
59 args[i-1] := arg;
60 end;
61 TTestServer.Execute( args );
62 Writeln('Press ENTER to close ... '); Readln;
63 except
64 on E: Exception do
65 Writeln(E.ClassName, ': ', E.Message);
66 end;
67end.
68
69
70