Chris Erskine
Along with what the others have said, SMTP is a line based protocol. That means that you want to gather a full line before you start the parsing.
toggle quoted message
Show quoted text
Chris -----Original Message-----
From: Crestron@... [mailto:Crestron@...] On Behalf Of Steve Kaudle Sent: Wednesday, January 28, 2009 1:29 PM To: Crestron@... Subject: [Crestron] Re: Help with parsing It is possible that you're parsing routine isn't able to keep up with changes at the buffer input. I'd recommend using a single-threaded parsing method, like the 'joel method', oft discussed 'round here in the past, or some sort of semaphore routine so once the parsing routine is started, changes to the buffer are ignored and/or treated differently until parsing is complete. Either way, shifting the contents of the buffer into a local string variable, then working on that variable, is generally a good practice. --- In Crestron@..., "bfschroe" <schroeder@...> wrote:
------------------------------------ Check out the Files area for useful modules, documents, and drivers. A contact list of Crestron dealers and programmers can be found in the Database area. Yahoo! Groups Links |