ï
No its up to you.  You will have to decide what will be in your packet.
 
something like
 
size                            // sizeof whole packet
command/request        // waht this packet contains
other stuff                    // any stuff needed
DataBlock                   // block of data in packet
Also note that you must be able to deal with situations when several "messages" [1] will arrive in a single data stream returned from the IOCP, with the last message in part possibly. [2]
 
[1] By "message", I mean the logical unit that your program uses to send/receive data.  This may include a single packet, or several of them.
[2] The above will apply for data-stream protocols, like TCP.  Things might not be the same for other protocols, which might be somewhat message-oriented.
That which an age feels to be evil is usually an untimely after-echo of that which was formerly felt to be good â the atavism of an older ideal.
-Beyond Good And Evil, F. W. Nietzsche
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to