[Live-devel] Non blocking read in ByteStreamFileSource

Kumar Sambhav sambhav at saranyu.in
Mon Feb 27 23:20:49 PST 2012


Hi Ross,

I am using Linux.

Before going to read function, the program blocks at ByteStreamFileSource::createNew when it tries to do OpenInputFile on a pipe. 
I was not able to find any options to call fopen in non blocking mode. 


Regards,
Sambhav

On Feb 28, 2012, at 9:20 AM, Ross Finlayson wrote:

>> 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/
> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120228/5397ea70/attachment.html>


More information about the live-devel mailing list