From owner-freebsd-current Mon Mar 26 20: 9:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 97DB837B719; Mon, 26 Mar 2001 20:09:43 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2R49hw15243; Mon, 26 Mar 2001 20:09:43 -0800 (PST) Date: Mon, 26 Mar 2001 20:09:43 -0800 From: Alfred Perlstein To: Bill Paul Cc: current@FreeBSD.ORG Subject: Re: Fixing ypbind with TI-RPC Message-ID: <20010326200943.N9431@fw.wintelcom.net> References: <20010327000456.6B15D37B71A@hub.freebsd.org> <20010326195710.M9431@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010326195710.M9431@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Mar 26, 2001 at 07:57:10PM -0800 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Alfred Perlstein [010326 19:57] wrote: > * Bill Paul [010326 16:05] wrote: > > Why can't you just enable sigio on the reply socket, send all the > requests with a 0 timeout and then wait for a signal to either > interrupt the sending or to notify you when you complete sending? > > Your solution seems awfully complex for what seems to be a simple > problem; doing a directed broadcast and taking the first answer you > get back. > > Is the whole reason you need to do this because you're using the > xid to differentiate between the servers? If that's true then you have a couple of options... We could add a hack to our version of the rpc library to allow manipulation/query of the xid. Or if the reply's source doesn't match any of the destinations you can remember it and send out another ping to that address. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message