mirror of
https://github.com/linux-msm/tqftpserv.git
synced 2026-02-25 13:12:17 -08:00
33a3b4891e19033458d19f47069e7db23751fc0f
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>
Description
Languages
C
96.1%
Meson
3.9%