How to send a packet that will have some kind of header with data length information, so server would know how big/long the data is?
For example first 4 bytes would tell the data length..
How to make that kind of string and how to read this kind of packet?
Does anyone have a better idea for finding out packet length/size?
Thanks for help