source: branches/DirectWeb/UWebServer.pas

Last change on this file was 91, checked in by george, 14 years ago
  • Upraveno: Třída TWebServer oddělena do samostatné jednotky.
File size: 747 bytes
Line 
1unit UWebServer;
2
3{$mode Delphi}{$H+}
4
5interface
6
7uses
8 Classes, SysUtils, UHTTPServer, UHTTPSessionFile,
9 UTCPServer, Contnrs,
10 UCommon, syncobjs,
11 UMemoryStreamEx,
12 UMIMEType, Synautil, UPool,
13 USqlDatabase, DOM, XMLRead, UHTMLControls;
14
15const
16 ConfigFileName = 'Config.xml';
17
18type
19
20
21
22 { TWebServer }
23
24 TWebServer = class
25 private
26 public
27 HTTPServer: THTTPServer;
28 constructor Create;
29 destructor Destroy; override;
30 end;
31
32implementation
33
34constructor TWebServer.Create;
35begin
36 inherited Create;
37 HTTPServer := THTTPServer.Create;
38 with HTTPServer, Socket do begin
39 end;
40end;
41
42destructor TWebServer.Destroy;
43begin
44 HTTPServer.Destroy;
45 inherited Destroy;
46end;
47
48
49end.
50
Note: See TracBrowser for help on using the repository browser.