Louis Naber wrote:
I have an unfortunate scenario where I am dealing with legacy output
peripherals that do not have nicely designed messaging built into them.  The
messages are variable length, unterminated, with no header information.

Are there *any* rules that allow detection of message boundaries? For example, is there a time interval between messages? Is a message always sent in a single IP packet, and is there enough knowledge of the underlying protocol stack to assume that there will be no fragmentation?

The question I have, is it possible to find out if more data is available
for the session when the lim=capacity just to make sure that the incomplete
message assumption is correct?

If there is a time interval between messages, you could probably start a timer when data is received, buffering the data received until the timer fires, and then pass the buffered data onwards.

Reply via email to