Re: [twsocket] Need example code for identifying arecordbeforeprocessing

2006-11-21 Thread Francois PIETTE
> << Alternatively, you may send your data in text form instead of binary > form. > It takes more space but you have no problem with line end terminator (The > default CRLF is perfect) and you avoid problem with binary representation > of > data which DIFFER from one processor to another processor

Re: [twsocket] Need example code for identifying arecordbeforeprocessing

2006-11-21 Thread Fastream Technologies
Here is an idea: (HTTP uses this logic). Send a header with the content-length first then cut the data wrt that. Regards, SZ On 11/20/06, Francois PIETTE <[EMAIL PROTECTED]> wrote: > > << Alternatively, you may send your data in text form instead of binary > > form. > > It takes more space but y

Re: [twsocket] Need example code for identifying arecordbeforeprocessing

2006-11-21 Thread Francois Piette
> <<> OnDataAvailable() should only fire once for each record, because I am > > having > > the sender add a #126 (~) as the last byte of each record, and using > > LineMode with LineEnd = #126. > > WARNING: Since your record contains binary data, it could contains a #126 as > > part of the data. So