Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 11:27:39 +0200
From:      "Nicolas Cormier" <n.cormier@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   in-kernel tcp server
Message-ID:  <c4630b800706180227x2f1f433dr4ef55e8623062bf1@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.
-- 
Nicolas Cormier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c4630b800706180227x2f1f433dr4ef55e8623062bf1>