@@ -47,26 +47,27 @@ namespace RTC
4747 listener (listener),
4848 packetSender(this , this ->listener),
4949 t1InitTimer(
50- std::make_unique<BackoffTimerHandle>(
51- /* listener*/ this ,
52- /* baseTimeoutMs*/ sctpOptions.t1InitTimeoutMs,
53- /* backoffAlgorithm*/ BackoffTimerHandleInterface::BackoffAlgorithm::EXPONENTIAL,
54- /* maxBackoffTimeoutMs*/ sctpOptions.timerMaxBackoffTimeoutMs,
55- /* maxRestarts*/ sctpOptions.maxInitRetransmissions)),
50+ std::make_unique<BackoffTimerHandle>(BackoffTimerHandleInterface::BackoffTimerHandleOptions{
51+ .listener = this ,
52+ .baseTimeoutMs = sctpOptions.t1InitTimeoutMs ,
53+ .backoffAlgorithm = BackoffTimerHandleInterface::BackoffAlgorithm::EXPONENTIAL,
54+ .maxBackoffTimeoutMs = sctpOptions.timerMaxBackoffTimeoutMs ,
55+ .maxRestarts = sctpOptions.maxInitRetransmissions ,
56+ })),
5657 t1CookieTimer(
57- std::make_unique<BackoffTimerHandle>(
58- /* listener*/ this ,
59- /* baseTimeoutMs*/ sctpOptions.t1CookieTimeoutMs,
60- /* backoffAlgorithm*/ BackoffTimerHandleInterface::BackoffAlgorithm::EXPONENTIAL,
61- /* maxBackoffTimeoutMs*/ sctpOptions.timerMaxBackoffTimeoutMs,
62- /* maxRestarts*/ sctpOptions.maxInitRetransmissions)),
58+ std::make_unique<BackoffTimerHandle>(BackoffTimerHandleInterface::BackoffTimerHandleOptions{
59+ . listener = this ,
60+ . baseTimeoutMs = sctpOptions.t1CookieTimeoutMs ,
61+ . backoffAlgorithm = BackoffTimerHandleInterface::BackoffAlgorithm::EXPONENTIAL,
62+ . maxBackoffTimeoutMs = sctpOptions.timerMaxBackoffTimeoutMs ,
63+ . maxRestarts = sctpOptions.maxInitRetransmissions } )),
6364 t2ShutdownTimer(
64- std::make_unique<BackoffTimerHandle>(
65- /* listener*/ this ,
66- /* baseTimeoutMs*/ sctpOptions.t2ShutdownTimeoutMs,
67- /* backoffAlgorithm*/ BackoffTimerHandleInterface::BackoffAlgorithm::EXPONENTIAL,
68- /* maxBackoffTimeoutMs*/ sctpOptions.timerMaxBackoffTimeoutMs,
69- /* maxRestarts*/ sctpOptions.maxRetransmissions))
65+ std::make_unique<BackoffTimerHandle>(BackoffTimerHandleInterface::BackoffTimerHandleOptions{
66+ . listener = this ,
67+ . baseTimeoutMs = sctpOptions.t2ShutdownTimeoutMs ,
68+ . backoffAlgorithm = BackoffTimerHandleInterface::BackoffAlgorithm::EXPONENTIAL,
69+ . maxBackoffTimeoutMs = sctpOptions.timerMaxBackoffTimeoutMs ,
70+ . maxRestarts = sctpOptions.maxRetransmissions } ))
7071 {
7172 MS_TRACE ();
7273 }
0 commit comments