Re: Streams for several parties

Brian Aker <[email protected]> Mon, 22 Dec 2003 18:48:58 -0800
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <[email protected]>
On Dec 16, 2003, at 9:25 PM, Matt Block wrote:

> This isn't easy to solve.  I thought of putting the information into
> shared memory and having each client read it from there.  One client
> was the designated stream reader, and the others just took what they 
> could
> from shared memory.  That way the FIFO gets depleted only as fast as 
> the
> designated reader reads.  Unfortunately, the other side of this is that
> shared memory fills only that quickly as well, so it may be that the
> other clients block for a bit.  Worse, there is no good way to know 
> when

My solution for this (though not completed in the code) was to have 
incoming connections create named pipes and to have one central reader 
write to write to all of these.

    -Brian
--
_______________________________________________________
Brian "Krow" Aker, [email protected]
Seattle, Washington
http://krow.net/
http://askbrian.org/
_______________________________________________________
You can't grep a dead tree.