Re[2]: [twsocket] Non-LineMode Protocol Sending and Receiving

2005-06-02 Thread Wilfried Mestdagh
Hello Wes, In addition to the advice of Francois is what I often do if designing a protocol that is both ascii data (for commands) and binary data packets, is to preceide the packet with a length in hexadecimal form (byte, word or dword). Wy ? Because if most of the data is ascii command then it m

Re[2]: [twsocket] Non-LineMode Protocol Sending and Receiving

2005-05-31 Thread Wilfried Mestdagh
Hello Wesley, > If I have LineMode off, that means I have to > either 1) look for a terminator or 2) accept many bytes and then act > on the information I have so far, correct? yes > Again, as I've seen in archive here before, what happens if my > information gets processed in two batches (pack