TsgcSTUNClientProperties › RetransmissionOptions

RetransmissionOptions Property

UDP retransmission settings (RTO and MaxRetries) used to resend Binding Requests when no response arrives.

Syntax

property RetransmissionOptions: TsgcSTUNPRetransmissionClient_Options read FRetransmissionOptions write SetRetransmissionOptions;

Default Value

Remarks

UDP does not guarantee delivery, so STUN clients must retransmit requests until a response arrives or a maximum number of retries is reached. This property only applies when Transport is stUDP.

Example

oSTUN.Transport := stUDP;
oSTUN.RetransmissionOptions.Enabled := True;
oSTUN.RetransmissionOptions.RTO := 500;
oSTUN.RetransmissionOptions.MaxRetries := 7;
oSTUN.SendRequest;

Back to Properties