I'm used to using Winsock in C++, and I have a server app that sends and receives data with headers similar to HTTP format.
When I use recv() in c++ with a sufficiently large buffer, I will always receive my whole packet...
Does the DataStreamInput.read() act similarly? I haven't yet been able to receive a message, and I'm thinking I'm not getting the whole message before it iterates to read again...
As I'm writing this on Windows for Android, it's tough to debug, just wondering if there's a way that would be closer to my C++ code?