dynamic timeouts and minor cleanups

This commit is contained in:
2023-03-12 01:26:23 +01:00
parent cd6141ee00
commit 086fc52e92
6 changed files with 5 additions and 11 deletions

View File

@@ -124,9 +124,7 @@ ToxClient::ToxClient(const CommandLine& cl) :
NGC_FT1_options ft1_options {};
ft1_options.acks_per_packet = cl.ft_acks_per_packet;
ft1_options.init_retry_timeout_after = cl.ft_init_retry_timeout_after;
ft1_options.sending_resend_without_ack_after = cl.ft_sending_resend_without_ack_after;
ft1_options.sending_give_up_after = cl.ft_sending_give_up_after;
ft1_options.packet_window_size = cl.ft_packet_window_size;
_ft1_ctx = NGC_FT1_new(&ft1_options);
NGC_FT1_register_ext(_ft1_ctx, _ext_ctx);