|
Last change
on this file was 35, checked in by george, 15 years ago |
- Přidáno: Třídy pro běh web serveru, asociativní pole, dávkový přenos paketů.
|
|
File size:
741 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 | { TWebServer }
|
|---|
| 20 |
|
|---|
| 21 | TWebServer = class
|
|---|
| 22 | private
|
|---|
| 23 | public
|
|---|
| 24 | HTTPServer: THTTPServer;
|
|---|
| 25 | constructor Create;
|
|---|
| 26 | destructor Destroy; override;
|
|---|
| 27 | end;
|
|---|
| 28 |
|
|---|
| 29 | implementation
|
|---|
| 30 |
|
|---|
| 31 | constructor TWebServer.Create;
|
|---|
| 32 | begin
|
|---|
| 33 | inherited Create;
|
|---|
| 34 | HTTPServer := THTTPServer.Create;
|
|---|
| 35 | with HTTPServer, Socket do begin
|
|---|
| 36 | end;
|
|---|
| 37 | end;
|
|---|
| 38 |
|
|---|
| 39 | destructor TWebServer.Destroy;
|
|---|
| 40 | begin
|
|---|
| 41 | HTTPServer.Destroy;
|
|---|
| 42 | inherited Destroy;
|
|---|
| 43 | end;
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | end.
|
|---|
| 47 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.