TsgcSTUNClient › Properties › RetransmissionOptions
応答がない場合にバインディングリクエストを再送するために使用される UDP 再送信設定(RTO と MaxRetries)。
property RetransmissionOptions: TsgcSTUNPRetransmissionClient_Options read FRetransmissionOptions write SetRetransmissionOptions;
—
UDPは配信を保証しないため、STUNクライアントはレスポンスが届くか、最大リトライ回数に達するまでリクエストを再送信する必要があります。このプロパティはTransportがstUDPの場合にのみ適用されます。
oSTUN.Transport := stUDP;
oSTUN.RetransmissionOptions.Enabled := True;
oSTUN.RetransmissionOptions.RTO := 500;
oSTUN.RetransmissionOptions.MaxRetries := 7;
oSTUN.SendRequest;