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