9 Oct
2013
9 Oct
'13
2:09 p.m.
Phil Mayers wrote:
Perhaps architecturally, but not inherently; you could, at least in theory:
1. Receive 4-byte length 2. Sanity-check the length 3. Allocate buffer 4. Read on TCP socket non-blocking in normal select loop until you've filled the buffer 5. Parse packet from buffer, dispatch packet
That is *exactly* what the server does for TCP. Alan DeKok.