quotemain.pas 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. { $HDR$}
  2. {**********************************************************************}
  3. { Unit archived using Team Coherence }
  4. { Team Coherence is Copyright 2002 by Quality Software Components }
  5. { }
  6. { For further information / comments, visit our WEB site at }
  7. { http://www.TeamCoherence.com }
  8. {**********************************************************************}
  9. {}
  10. { $Log: 14637: quotemain.pas
  11. {
  12. { Rev 1.2 1/10/2003 07:04:08 PM JPMugaas
  13. { Updated with change Bas suggested.
  14. }
  15. {
  16. { Rev 1.1 1/6/2003 12:07:46 PM JPMugaas
  17. { Now works with Context.
  18. }
  19. {
  20. { Rev 1.0 12/28/2002 8:16:26 AM JPMugaas
  21. { Used for testing some new core stuff.
  22. }
  23. unit quotemain;
  24. interface
  25. uses
  26. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  27. Dialogs, IdBaseComponent, IdComponent, IdTCPServer;
  28. type
  29. TForm1 = class(TForm)
  30. IdTCPServer1: TIdTCPServer;
  31. procedure IdTCPServer1Execute(AContext: TIdContext);
  32. private
  33. { Private declarations }
  34. public
  35. { Public declarations }
  36. end;
  37. var
  38. Form1: TForm1;
  39. implementation
  40. uses IdRunAbleFiber, IdYarn;
  41. {$R *.dfm}
  42. procedure TForm1.IdTCPServer1Execute(AContext: TIdContext);
  43. begin
  44. AContext.Connection.IOHandler.WriteLn('To err is human, to forgive is divine.');
  45. AContext.Connection.Disconnect;
  46. end;
  47. initialization
  48. GIdRunAbleClass := TIdRunAbleFiber;
  49. end.