Calculating packet size
BlitzMax Forums/BlitzMax Beginners Area/Calculating packet size
| ||
Hi, it's me again ;) I need to calculate the packet size of a tcp/ip packet and send this size as the first int to the server. I thought about creating a 'dummy-stream', writing all the packets into it and try to read the stream size in bytes. But I think there's a better way and my tries to read the size weren't very successful. Thanks for help. |
| ||
I need to calculate the packet size of a tcp/ip packet and send this size as the first int to the server. You can't. You can only calculate the size of your data. The packet size will vary as you packet traverses the Internet.What do you need it for? |
| ||
I need it to implement RCon support into my server query tool for HL2 servers. But probably the data was meant, not the packet size. http://wiki.hlsw.net/wiki/wiki.phtml?title=HL_2_Rcon_Protocol |