<div>I can do that, but how do I handle remaining bytes if I read past the delimiter.</div>
<div>&nbsp;</div>
<div>I&#39;ll parse up to the delimiter, kick all those bytes into fTo and call afterGetting().</div>
<div>Do I need to handle the remaining bytes myself? or is there a mechanism for it?<br><br>Thanks for all your help.</div>
<div>-j.</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 5/2/07, <b class="gmail_sendername">Ross Finlayson</b> &lt;<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;From looking at examples in the code, if I were to use<br>&gt;fInputSource-&gt;getNextFrame(), it looks like I would do my processing
<br>&gt;in afterGettingFrame() then, correct?<br><br>Yes.<br><br>&gt;<br>&gt;I wouldnt know how many bytes to tell the getNextFrame() call to<br>&gt;get, though, since I have just a delimited elemtary stream coming<br>&gt;from the file.
<br><br>You should request as many bytes as you have space available in your<br>buffer (that you&#39;ll be using to do the parsing).<br><br>&gt;<br>&gt;Im thinking that telling getNextFrame to get 1 byte at a time<br>&gt;wouldnt be very efficient, but I need to check one byte at a time
<br>&gt;for the 3-byte delimiter.<br><br>You should read large chunks of data, into a buffer.<br>--<br><br>Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a><br>_______________________________________________
<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel
</a><br></blockquote></div><br>