source: Network/HTTP/UWebServer.pas

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