delphimvcframework/test/teststompclient2007.dpr

27 lines
451 B
ObjectPascal
Raw Normal View History

2009-11-10 11:32:54 +01:00
program teststompclient2007;
{$APPTYPE CONSOLE}
uses
StompTypes in 'StompTypes.pas',
StompClient in 'StompClient.pas',
MainU in 'MainU.pas',
SysUtils,
StopWatch in 'StopWatch.pas';
var
address: string;
begin
if ParamCount = 1 then
address := paramstr(1)
else
address := 'localhost';
try
Main(address);
except
on E: Exception do
Writeln(E.Classname, ': ', E.Message);
end;
end.