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.