From: Levin Alexander Date: 2005-12-20T07:55:33+09:00 Subject: Re: Better way to read data from IO into packets? On 12/19/05, Joel VanderWerf wrote: > But there is some logic in the op's code that looks for repeated "start> byte". I'm just not sure what the limit is. A packet always starts with the two bytes "\x65\xEB", everything elseresets the state machine. The special case in the code was needed to correcly handle"\x65\x65\xEB" (one bad character before valid start of packet) --the state machine needs to always look for "\xEB" after "\x65" -Levin