fpc/fcl/net/tests/svrclass.pp
sg b08afa2937 * First version (with exception of the HTTP unit: This is an improved version
of the old asyncio HTTP unit, now adapted to fpAsync)
2002-04-25 19:30:29 +00:00

27 lines
420 B
ObjectPascal

unit svrclass;
interface
type
TServerClass = class
public
procedure WriteString(const s: String);
function Add(Arg1, Arg2: Integer): Integer;
end;
implementation
procedure TServerClass.WriteString(const s: String);
begin
WriteLn('String: "', s, '"');
end;
function TServerClass.Add(Arg1, Arg2: Integer): Integer;
begin
WriteLn('Adding ', Arg1, ' and ', Arg2);
Result := Arg1 + Arg2;
end;
end.