Hello Nicholas,

In fact it is LineMode that does that for you. You only need a character
there that is not in the data (or a character sequence). Other approach
is to send packets with fixed length, or have a byte / word / dword in
beginning of packet with the size, this can be binary if it is binary
data, but if it is ascii data then I mostly do a size in hexadecimal
notation. I write it every time again because in all cases it is a
little different :)

---
Rgds, Wilfried
http://www.mestdagh.biz

Thursday, July 7, 2005, 07:08, Nicholas Sherlock wrote:

> Hey all,

> Has anyone made a TWSocket descendant that lets you send whole 
> "Messages", which it keeps together? And it fires an event once a whole
> message has been received and lets you deal with it? I made something 
> like this for two projects of mine, but I'm wondering if anyone has made
> such a component so I don't have to keep rewriting things for every 
> project :).

> Cheers,
> Nicholas Sherlock



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to