Introduction - If you have any usage issues, please Google them yourself
c language to imitate the sliding window protocol, the source code. (1) the preparation of the sliding window protocol to send a program, so that the serial number length N = 3, the maximum window size = 4 (2) send the program needs to handle three events: the network layer packet arrives, the timer timeout, confirm arrival external inputs to simulate and send the program should be sent to the side frame directly output, easy to check the correctness of the program.