[Live-devel] Non blocking read in ByteStreamFileSource

Ross Finlayson finlayson at live555.com
Mon Feb 27 19:50:50 PST 2012


> In  ByteStreamFileSource::doReadFromFile(), read/fread blocks until there is any data. 

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.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120227/b407cbfc/attachment-0001.html>


More information about the live-devel mailing list