41 lines
995 B
ObjectPascal
41 lines
995 B
ObjectPascal
unit ProxyServer_ProxyServer_Main;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, uROServer, uROWinMessageServer,
|
|
uROIndyTCPChannel, uROClient, uROBINMessage, StdCtrls;
|
|
|
|
type
|
|
TProxyServer_ProxyServer_MainForm = class(TForm)
|
|
ROWinMessageServer: TROWinMessageServer;
|
|
ROBINMessage1: TROBINMessage;
|
|
Memo: TMemo;
|
|
procedure FormCreate(Sender: TObject);
|
|
procedure ROWinMessageServerReadFromStream(aStream: TStream);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
ProxyServer_ProxyServer_MainForm: TProxyServer_ProxyServer_MainForm;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure TProxyServer_ProxyServer_MainForm.FormCreate(Sender: TObject);
|
|
begin
|
|
ROWinMessageServer.Active := TRUE;
|
|
end;
|
|
|
|
procedure TProxyServer_ProxyServer_MainForm.ROWinMessageServerReadFromStream(aStream: TStream);
|
|
begin
|
|
Memo.Lines.Add('Request arrived...')
|
|
end;
|
|
|
|
end.
|