I looked it up, and it seems that while IP will reassemble packets, there is no 1-1 mapping between <i>send</i> calls and IP packets, when using TCP.<p>You are only guaranteed to get the bytes in the correct order but you have to find the boundaries between messages yourself.