MINIBLOG

Blog Note Tags Links About
Home Search
May 18, 2026
miniyuan

计算机网络 Lab5 传输协议


注意 Dockerfile 中需要添加 RUN apt-get update

received_len = received_len - (MTP_PAYLOAD_LEN - (received_len % MTP_PAYLOAD_LEN));

改为

received_len = received_len - (MTP_PAYLOAD_LEN - (len % MTP_PAYLOAD_LEN));

哎还是不对,直接写成 len 好了。

© 2026 miniyuan. All rights reserved.
Go to miniyuan's GitHub repo