Messages in this thread | | | Date | Wed, 18 Apr 2001 23:31:00 +0200 | From | Andi Kleen <> | Subject | Re: Socket hack question. |
| |
On Thu, Apr 19, 2001 at 12:28:52AM +0200, Joel Eriksson wrote: > Hello, > > I am a kernel hacking newbie and am struggling to understand the > networking subsystem. I would like to be able to add a systemcall, > preferably asynchronous, that connects a socket with a filedescriptor > (proxy(srcsd, dstfd)) so that everything received on srcsd is directly > written to dstfd. The proxy should close when srcsd is closed or when > a zero-size packet is sent (or something like that..).
That syscall already exists -- it's called sendfile.
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |