Skip to content
Discussion options

You must be logged in to vote

This is very likely a function of the buffer in the underlying hardware. It isn't uncommon for the OS call to receive the data in chunks like this. In general, you can't count on the underlying hardware to deliver it to you in chunks that exactly match your packet size, so you have to sync with your packets with another method like a sync value or just counting bytes.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by VR314
Comment options

You must be logged in to vote
1 reply
@LeStarch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants