lkml.org 
[lkml]   [2001]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.046 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site