Date: Tue, 19 Jun 2007 00:38:23 -0700 From: Julian Elischer <julian@elischer.org> To: Nicolas Cormier <n.cormier@gmail.com> Cc: freebsd-hackers@freebsd.org, John Polstra <jdp@polstra.com> Subject: Re: in-kernel tcp server Message-ID: <467787EF.9060009@elischer.org> In-Reply-To: <c4630b800706180227x2f1f433dr4ef55e8623062bf1@mail.gmail.com> References: <c4630b800706180227x2f1f433dr4ef55e8623062bf1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Nicolas Cormier wrote: > Hi, > > I'm trying to write a little tcp-server kernel module (like tftp). > I didn't find a lot of documents about the kernel network programming, > just one thread which talks about netgraph. > In the freebsd includes I found /usr/include/sys/socketvar.h (so*). > > What's the easy way to create a basic tcp server > (create/bind/listen/accept/send/recv) : use netgraph's ksocket or so* > ? > > Thanks in advance ! > PS: the whole job must be done in the kernel. yes it can (and has been) done.. John Polstra did it many years ago.. using netgraph ksockets. He had an in-kernel web server. At least I THINK it was him :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?467787EF.9060009>