Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2005 17:18:57 +0300
From:      Vlad GALU <vladgalu@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Re: how to active the received function when the data arrived the socket in kld
Message-ID:  <79722fad050606071818c24c6f@mail.gmail.com>
In-Reply-To: <20050606003519.52375.qmail@web15507.mail.cnb.yahoo.com>
References:  <20050606003519.52375.qmail@web15507.mail.cnb.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 6/6/05, shiner chen <shiner_chen@yahoo.com.cn> wrote:
> Inorder to impliment the dynamic load freeback policy ,I wrote a kld on
> the front-end of cluster server for collecting the load of  back nodes.
> I don't want the acceptive thread to detect the data arrived socket
> continuously,because ,which will affect the performance of the front-end.i want to know whether i can active the acceptive thread to receive the
> data when the data arrive the socket established. how shuld i do in the
> kernel ? thanks!!
> 
 
  If you're talking about non-blocking accept(), you should use
select(), poll() or kqueue() in your main loop. If you wish not to
create state for new sockets unless there is available in-band data,
take a look at accf_data(9).

> 
> 
> ---------------------------------
> DO YOU YAHOO!?
>   欢迎使用雅虎超大容量免费邮箱
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
> 


-- 
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.


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