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