Re: in-kernel tcp server

看板FB_hackers作者時間18年前 (2007/06/19 15:39), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/12 (看更多)
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 :-) _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16TuWg00 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16TuWg00 (FB_hackers)