Re: splice question

2007-08-12 Thread David Härdeman
On Sun, Aug 12, 2007 at 12:41:54PM -0700, Linus Torvalds wrote: On Sun, 12 Aug 2007, David H?rdeman wrote: Otherwise I guess I'd have to add a second pipe, then (in a loop) tee() from the first to the second pipe and then splice from the second pipe to a socket. Doesn't sound very elegant and wo

Re: splice question

2007-08-12 Thread Linus Torvalds
On Sun, 12 Aug 2007, David H?rdeman wrote: > > Once the data is in the pipe, my idea was to tee() from the pipe to each > client socket using nonblocking ops, and then consume the data by splicing it > to /dev/null. > > The problem is that tee() doesn't support sockets. Is this a limitation tha

splice question

2007-08-12 Thread David Härdeman
I'm currently toying with splice. The test program I have sends a MPEG2 transport stream from a dvb card and sends it to N clients via http. Since the dvb frontend driver doesn't support splice (linux/drivers/media/dvb/dvb-core/dmxdev.c I guess, anyone interested in adding splice support to it