TsgcSTUNClientProperties › RetransmissionOptions

RetransmissionOptions プロパティ

応答がない場合にバインディングリクエストを再送するために使用される UDP 再送信設定(RTO と MaxRetries)。

構文

property RetransmissionOptions: TsgcSTUNPRetransmissionClient_Options read FRetransmissionOptions write SetRetransmissionOptions;

デフォルト値

解説

UDPは配信を保証しないため、STUNクライアントはレスポンスが届くか、最大リトライ回数に達するまでリクエストを再送信する必要があります。このプロパティはTransportstUDPの場合にのみ適用されます。

使用例

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

プロパティに戻る