IdTCPServer.pas 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. $Project$
  3. $Workfile$
  4. $Revision$
  5. $DateUTC$
  6. $Id$
  7. This file is part of the Indy (Internet Direct) project, and is offered
  8. under the dual-licensing agreement described on the Indy website.
  9. (http://www.indyproject.org/)
  10. Copyright:
  11. (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved.
  12. }
  13. {
  14. $Log$
  15. }
  16. {
  17. Rev 1.69 12/2/2004 9:26:42 PM JPMugaas
  18. Bug fix.
  19. }
  20. unit IdTCPServer;
  21. interface
  22. {$i IdCompilerDefines.inc}
  23. uses IdCustomTCPServer;
  24. type
  25. EIdTCPNoOnExecute = class(EIdTCPServerError);
  26. TIdTCPServer = class(TIdCustomTCPServer)
  27. protected
  28. procedure CheckOkToBeActive; override;
  29. published
  30. property OnExecute;
  31. end;
  32. implementation
  33. uses IdResourceStringsCore;
  34. { TIdTCPServer }
  35. procedure TIdTCPServer.CheckOkToBeActive;
  36. begin
  37. inherited CheckOkToBeActive;
  38. if not Assigned(FOnExecute) then begin
  39. raise EIdTCPNoOnExecute.Create(RSNoOnExecute);
  40. end;
  41. end;
  42. end.