[ogg-dev] multiplexers

S. A. Ridley s7ephen at gmail.com
Thu Mar 8 18:23:02 PST 2007

     Hrm, I just looked those over (I had been familiar with oggz). It looks
like those both are thin wrappers around the stream protocol itself to
handle all the little nuisances, like filling pages etc. What I think I am
looking for is more of the multiplexer itself. When I didnt immediately find
a standard library that multiplexes over a single TCP connection, I assumed
it because with all the stream issues worked out in something like Ogg, it
would be trivial to implement. I gave it a shot earlier today, and there are
a whole number of issues that I didnt consider when writing a MUX, like QoS.
You would think you could just have a big loop in the heart of the mux that
select()s and does the read/write accordingly, but there are anumber of
issues introduced when you dynamically add a "channel", or if a channel
hangs, etc. So the multiplexer has to be a little beefier than I was first
assuming. Its still pretty surprising that a generic library to multiplex
over TCP is not more common. Something that would let you create a in
initial stream and then create "sub-streams" and expose a "mux_write()" and
"mux_read()" or something, and have the library transparently handle all the
mux/demux and messaging in between.  If something like this *does* exist,
please share!

On 3/8/07, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote:
> Have you looked at liboggz and libfishsound?
>         Jean-Marc
> S. A. Ridley wrote:
> > Hey folks,
> >   I just unsubscribed from the vorbis-dev mailinglist (several days ago)
> > after  a year or so of being subscribed, and today I run into a project
> > that will probably require using Ogg :-).
> > The project I am working on has a fairly quick timeline, and as a result
> > have to cut corners. The core of it will be wrapped around a
> > multiplexer. Ogg is obviously ideal for this, but I was wondering if
> > anyone knew of projects or libraries that exposed a simple multiplexer
> > for rapid development projects like this. Something that maybe allows
> > customization of the critical sections but has all the logic of adding
> > "streams", round-robining, and qos, stuff worked out. I am on win32
> > (this is important for the rotation type "event driven" or just a simple
> > loop).
> > If not a library then perhaps a project that has a simple multiplexer
> > that uses ogg for its streams.
> > Any information would be greatly appreciated.
> > Stephen
> >
> > --
> > ...tomorrow, the world.
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ogg-dev mailing list
> > ogg-dev at xiph.org
> > http://lists.xiph.org/mailman/listinfo/ogg-dev

...tomorrow, the world.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/ogg-dev/attachments/20070308/0d198b8a/attachment.html

More information about the ogg-dev mailing list