Bhaskar Valaboju 33a3b4891e tqftpserv: Cache wsize buffers in client instance
The client sends data packets of blksize size and waits for an ACK
after sending wsize packets. If packets are not received in sequence,
the server should send NACK, prompting the client to resend the packets
starting from beginning of the window.

For example, with wsize = 10 and blksize = 5000, the client sends
blocks [201–210] and waits. If all are received, the server replies
with ACK; otherwise, it sends NACK, and the client restarts from block 201.

Use rw_buf to cache received blocks and track the next expected block
using blk_expected. Reset the expected block to the start of the window
if out-of-sequence packets are detected.

Once all buffers are received, commit the cached buffers to the file.

Signed-off-by: Bhaskar Valaboju <quic_bhaskarv@quicinc.com>
2025-07-18 18:34:46 +05:30
2020-02-07 10:43:39 -08:00
2019-03-15 11:34:42 -07:00
2024-04-08 23:53:19 +02:00
2024-04-23 19:38:37 +02:00
2024-09-21 16:10:16 +01:00
Description
No description provided
BSD-3-Clause 135 KiB
Languages
C 96.1%
Meson 3.9%