From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [LIBNFNETLINK] Introduce nfnl_listen_for_msecs Date: Tue, 07 Feb 2006 15:39:03 +0100 Message-ID: <43E8B107.8040301@trash.net> References: <43E7FC3A.4050209@eurodev.net> <43E8A810.6010108@trash.net> <43E8AFCF.5040604@eurodev.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Harald Welte , Netfilter Development Mailinglist Return-path: To: Pablo Neira Ayuso In-Reply-To: <43E8AFCF.5040604@eurodev.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Pablo Neira Ayuso wrote: > Patrick McHardy wrote: > >>>The patch attached introduces a new function called >>>nfnl_listen_for_msecs. This is useful for polling netlink events. >> >>Can you give an example how this is going to be used? > > > A program waits for some specific event, if it doesn't happen in a given > period of time, it gives up. I got that :) What I actually wanted to know is what kind of program would need this, and if its not likely that most programs need their own select-loop for dealing with other fds anyway. Or in other words, I'm not convinced this feature belongs inside libnfnetlink.