On Wed, Jul 31, 2002 at 07:17:08PM +0200, Daniel Lundqvist wrote: > On Wed, Jul 31, 2002 at 05:49:14PM +0100, David Malone wrote: > > On Wed, Jul 31, 2002 at 06:30:57PM +0200, Daniel Lundqvist wrote: > > > If anyone has a better solution to this I'm all ears. > > > > Couldn't you do all this in userland and use a unix domain socket > > for communication between your clients and your master process? Then > > you could use select/poll/kqueue normally. > > That is one idea. But part of what I want to do is to skip as much copy to > userspace where there is no interested applications as possible. For the thing > I'm gonna use it for I expect it to be a quite busy message bus. > > Maybe the gain in the end is not that big,but I wont know until I tried it :)
See struct socket so_upcall and so_upcallarg. You may also want to look at netgraph framework for processing network data in the kernel. -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

