<div>I can do that, but how do I handle remaining bytes if I read past the delimiter.</div>
<div> </div>
<div>I'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> </div>
<div><span class="gmail_quote">On 5/2/07, <b class="gmail_sendername">Ross Finlayson</b> <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">>From looking at examples in the code, if I were to use<br>>fInputSource->getNextFrame(), it looks like I would do my processing
<br>>in afterGettingFrame() then, correct?<br><br>Yes.<br><br>><br>>I wouldnt know how many bytes to tell the getNextFrame() call to<br>>get, though, since I have just a delimited elemtary stream coming<br>>from the file.
<br><br>You should request as many bytes as you have space available in your<br>buffer (that you'll be using to do the parsing).<br><br>><br>>Im thinking that telling getNextFrame to get 1 byte at a time<br>>wouldnt be very efficient, but I need to check one byte at a time
<br>>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>