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

2005-06-02 Thread Francois Piette
It's easy with LineMode on - ICS only forwards the data on when it receives a delimeter. But when it's off, it seems as though anything other than file sends and receives (because you don't really act on the file stream, you just send or recieve its bytes) proves to be a difficult task. If

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

2005-06-01 Thread Wesley Spadola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wilfried Mestdagh wrote: Again, as I've seen in archive here before, what happens if my information gets processed in two batches (packets)? When do I decide OK, enough is enough, and continue on processing? Is TWSocket neccessarily fit for

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

2005-05-31 Thread Wesley Spadola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francois Piette wrote: Your ReadFully won't work. You must think event driven. When OnDataAvailable is triggered, you must read data but you can't loop waiting for so much data to come. If you have not received enough data, just get thereceived

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 x 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