<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Ross,</div><div><br></div>I am using Linux.<div><br></div><div>Before going to read function, the program blocks at ByteStreamFileSource::createNew when it tries to do OpenInputFile on a pipe. </div><div>I was not able to find any options to call fopen in non blocking mode. </div><div><br></div><div><br></div><div>Regards,</div><div>Sambhav<br><div><br></div><div><div><div><div>On Feb 28, 2012, at 9:20 AM, Ross Finlayson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>In ByteStreamFileSource::doReadFromFile(), read/fread blocks until there is any data. <br></div></blockquote><div><br></div>No, that happens only if READ_FROM_FILES_SYNCHRONOUSLY is defined, and that's defined only for Windows, where you have no choice in the matter (because Windows doesn't let you treat open files as select()able sockets). To overcome this, you need to use some other OS.</div><br><br><div apple-content-edited="true">
Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a>
</div>
<br></div>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>http://lists.live555.com/mailman/listinfo/live-devel<br></blockquote></div><br></div></div></div></body></html>