TsgcTCPClient › プロパティ › BoundPortMin

BoundPortMin プロパティ

送信接続をポート範囲にバインドする際のローカルポート範囲の下限。

構文

property BoundPortMin: TIdPort read FBoundPortMin write FBoundPortMin;

デフォルト値

0

解説

BoundPortMinとBoundPortMaxがどちらも0以外の場合、クライアントは空きポートが見つかるまで、ソースソケットを範囲[BoundPortMin..BoundPortMax]内のポートに順番にバインドしようとします。OSに任意の一時的なポートを選択させるには両方を0のままにし、単一のポートに固定するにはBoundPortを設定してください。

使用例


oTCP := TsgcTCPClient.Create(nil);
oTCP.Host := 'www.esegece.com';
oTCP.Port := 2053;
oTCP.BoundPortMin := 50000;
oTCP.BoundPortMax := 50100;
oTCP.Active := true;

プロパティに戻る