quotemainNoRF.pas 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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: 14980: quotemainNoRF.pas
  11. {
  12. { Rev 1.0 1/9/2003 03:40:26 PM JPMugaas
  13. { Quotdtest without RunnableFiber links.
  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 quotemainNoRF;
  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 FormCreate(Sender: TObject);
  32. procedure IdTCPServer1Execute(AContext: TIdContext);
  33. private
  34. { Private declarations }
  35. public
  36. { Public declarations }
  37. end;
  38. var
  39. Form1: TForm1;
  40. implementation
  41. uses IdYarn;
  42. {$R *.dfm}
  43. procedure TForm1.FormCreate(Sender: TObject);
  44. begin
  45. // GIdRunAbleClass := TIdRunAbleFiber;
  46. end;
  47. procedure TForm1.IdTCPServer1Execute(AContext: TIdContext);
  48. begin
  49. AContext.Connection.IOHandler.WriteLn('To err is human, to forgive, is divine.');
  50. AContext.Connection.Disconnect;
  51. end;
  52. end.