Why doesn't uox3 receive packets at once ?
Posted: Tue Aug 14, 2012 7:14 am
I don't know what is the disadvantage or advantage of this, but why not receiving the whole packet, then splitting it ? UOX3 does it differently, receiving the first byte, then second "length" WORD, then receives all. What happens if i change this and receive all the packet in the beginning with MAXBUFFER limitation ?
And by the way, why does Receive function uses a do..while at recv() ? Doesn't it already receive it when FD_ISSET successes ?
I want to learn these so i can implement an encryption system.
edit : aww it is weird to ask second question lol. WSAEWOULDBLOCK is the reason.
And by the way, why does Receive function uses a do..while at recv() ? Doesn't it already receive it when FD_ISSET successes ?
I want to learn these so i can implement an encryption system.
edit : aww it is weird to ask second question lol. WSAEWOULDBLOCK is the reason.