To begin with - I'm not very familiar with socket and networking in general, however I have to use TCP sockets in my application.
I read data (13 bytes) from winapi TCP socket once a second. However, it's not often enough, data gets queued in the input buffer (is it correct term?) and the data I'm reading is not the last that came to the queue. I'd like to read the most recent 13 bytes. How to achieve that? To read data I'm using recv(mSocket,data,length,0);