Finished the fucking Stop-and-Wait Protocal
For now,it was just like a nightmare last night.
However terrible the code is,I HAVE FINISHED it.So B4N.