Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: Anyone got problems using idMappedPortTCP

www.cryer.info
Managed Newsgroup Archive

Re: Anyone got problems using idMappedPortTCP

Subject:Re: Anyone got problems using idMappedPortTCP
Posted by:"loris luise" (lorislui..@iol.it)
Date:Thu, 15 Mar 2007 22:25:47

Latest Indy 10.1.6 form ftp.fulgan

Just an example

************************************************
object Form3: TForm3
Left = 0
Top = 0
Caption = 'Form3'
ClientHeight = 228
ClientWidth = 378
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Button1: TButton
Left = 32
Top = 80
Width = 75
Height = 25
Caption = 'Start'
TabOrder = 0
OnClick = Button1Click
end
object Button2: TButton
Left = 113
Top = 80
Width = 75
Height = 25
Caption = 'stop'
TabOrder = 1
OnClick = Button2Click
end
object IdMappedPortTCP1: TIdMappedPortTCP
Bindings = <>
DefaultPort = 3051
ListenQueue = 100
TerminateWaitTime = 0
MappedHost = ''192.168.2.2''
MappedPort = 3050
Left = 64
Top = 24
end
end


************************************************


unit Unit3;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IdMappedPortTCP, IdBaseComponent, IdComponent,
IdCustomTCPServer;

type
TForm3 = class(TForm)
IdMappedPortTCP1: TIdMappedPortTCP;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form3: TForm3;

implementation

{$R *.dfm}

procedure TForm3.Button1Click(Sender: TObject);
begin
IdMappedPortTCP1.Active := true;
end;

procedure TForm3.Button2Click(Sender: TObject);
begin
IdMappedPortTCP1.Active := false;
end;

end.

************************************************
Remy Lebeau (TeamB) wrote:
> "loris luise" <lorisluise@iol.it> wrote in message
> news:45f7b006@newsgroups.borland.com...
>
>> i have big problems using Indy 10 IdMappedPortTCP component
>> in my application.
>
> Please be more specific.
>
>> Simply put, communications are randomly freezing, while
>> application is still working.
>
> That is not helpful information.  You have not specified which build
> of Indy 10 you are using.  You have not shown any code you are using.
> You have not described what kind of data is being exchanged.  There is
> no way to diagnose your problem without more information.
>
>
> Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive