Componentes.Terceros.RemObj.../internal/5.0.23.613/1/RemObjects SDK for Delphi/Samples/Time Server/TimeServer_Impl.pas
david f0e35ec439 - Eliminadas las librerías para Delphi 6 (Dcu\D6) en RO y DA.
- Recompilación de RO para poner RemObjects_Core_D10 como paquete de runtime/designtime.

git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@3 b6239004-a887-0f4b-9937-50029ccdca16
2007-09-10 10:40:17 +00:00

53 lines
1.5 KiB
ObjectPascal

unit TimeServer_Impl;
{----------------------------------------------------------------------------}
{ This unit was automatically generated by the RemObjects SDK after reading }
{ the RODL file associated with this project . }
{ }
{ This is where you are supposed to code the implementation of your objects. }
{----------------------------------------------------------------------------}
interface
uses
{vcl:} Classes, SysUtils,
{RemObjects:} uROClientIntf, uROServer, uROServerIntf,
{Generated:} TimeServer_Intf;
type
TTimeServer = class(TRORemotable, ITimeServer)
private
protected
function Sum(const A: Integer; const B: Integer): Integer;
function GetServerTime: DateTime;
end;
implementation
uses
{Generated:} TimeServer_Invk, TimeServer_ServerMain;
procedure Create_TimeServer(out anInstance : IUnknown);
begin
anInstance := TTimeServer.Create;
end;
function TTimeServer.Sum(const A: Integer; const B: Integer): Integer;
begin
result := A+B;
TimeServer_ServerMainForm.mmRequest.Lines.Add('* Processing Sum request.');
end;
function TTimeServer.GetServerTime: DateTime;
begin
result := Now;
TimeServer_ServerMainForm.mmRequest.Lines.Add('* Processing Time request.');
end;
initialization
TROClassFactory.Create('TimeServer', Create_TimeServer, TTimeServer_Invoker);
finalization
end.