开发者

UDP Client only receives the very first transmission and none of the subsequent

开发者 https://www.devze.com 2023-03-28 11:14 出处:网络
I have asked a similar question to this before, but received limited help because of the lack of code I provided.I have written a client/server application as the prototype for a game my organization

I have asked a similar question to this before, but received limited help because of the lack of code I provided. I have written a client/server application as the prototype for a game my organization is developing. The issue I have is t开发者_如何学Pythonhat the client after the initial connection is made, sends UDP data and receives the very first packet, but none of the rest. The client is initiating the "connection"(I know UDP is a connectionless protocol... you know what I mean). I have checked the packets sent and received through wireshark and they are being sent and received apparently correctly. The server is port forwarded so it receives all the data coming from the client. I am getting no errors, and the packets are all approximately the same size. I have posted my code here: http://pastebin.com/k5NsBDsQ so that you can look through it and see where a mistake might be. This is the complete code not just the parts I believe relevant. Thanks in advance for your help.

0

精彩评论

暂无评论...
验证码 换一张
取 消