TsgcTCPClient › Eigenschappen › BoundPortMin

BoundPortMin Eigenschap

Ondergrens van het lokale poortbereik bij het binden van de uitgaande verbinding aan een reeks poorten.

Syntaxis

property BoundPortMin: TIdPort read FBoundPortMin write FBoundPortMin;

Standaardwaarde

0

Opmerkingen

When BoundPortMin and BoundPortMax are beide non-zero, de client tries to bind the source socket sequentieel to ports in the range [BoundPortMin..BoundPortMax] until a free port is found. Leave beide at 0 to let the OS pick elk ephemeral port, or set BoundPort to pin a enkel port.

Voorbeeld


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

Terug naar Properties