delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/05/01:46:11

X-Spam-Check-By: sourceware.org
X-YMail-OSG: 7hdrSVoVM1nmwyAv4GLpSlMwp7Okf_epKA4do2mDdSgalnrYcoYfqqIA.0M88ahThCokBYew_IrpY7nZ94KVH2H7jePKxCaHz0tK7dV38aFaG.83D60HF_NgPG6cLknp_5PTlKegNuYKybU-
Date: Sun, 4 Feb 2007 22:45:45 -0800
From: George <d1945 AT sbcglobal DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: netselect on Cygwin
Message-ID: <20070205064545.GA380@home>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <45C69FFF DOT 7010509 AT users DOT sourceforge DOT net> <20070205031142 DOT GC24653 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20070205031142.GC24653@trixie.casa.cgf.cx>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Note-from-DJ: This may be spam

On Sun, Feb 04, 2007 at 10:11:42PM -0500, Christopher Faylor wrote:
> On Sun, Feb 04, 2007 at 09:09:51PM -0600, Yaakov (Cygwin Ports) wrote:
> > Has anyone built a working netselect for cygwin, or have a decent
> > alternative?
> 
> You might want to think about providing more details about what
> "netselect" is.

From the netselect v 0.3 README:

	This is netselect, an ultrafast intelligent parallelizing
	binary-search implementation of "ping."

	Now stop laughing and pay attention.
	
	...

The following saved output should be more informative (script courtesy
of the always clever Mr. Peshansky).  

As to the original question, yes, I've successfully built netselect
using Cygwin.  The "everything is 30 hops" results, however, I never
bothered to investigate further.   Instead, I opted for the more
traditional pointy metal projectile hurled toward a concentrically
ringed object methodology, the results of which were validated by
pouring a pint of Guinness and making note of the decreasing number of
times I glanced at my watch during the download process.

$ cat ~/bin/cygwin-netselect
#!/bin/sh
netselect -vv $(\
wget -O - http://cygwin.com/mirrors.txt |\
grep rsync |\
cut -d';' -f1 |\
sed -e 's;\(rsync://[0-9a-z.-]*\).*;\1;' \
)

$ cygwin-netselect
--22:15:24--  http://cygwin.com/mirrors.txt
           => `-'
Resolving cygwin.com... 209.132.176.174
Connecting to cygwin.com[209.132.176.174]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11,961 [text/plain]

100%[==========================================>] 11,961        43.42K/s             

22:15:24 (43.42 KB/s) - `-' saved [11961/11961]

netselect: unknown host sigunix.cwru.edu                    
Running netselect to choose 1 out of 10 addresses.      

rsync://rsync.osuosl.org              9999 ms  30 hops    0% ok
rsync://204.152.191.7                 9999 ms  30 hops    0% ok
rsync://204.152.191.39                9999 ms  30 hops    0% ok
rsync://mirrors.xmission.com          9999 ms  30 hops    0% ok
rsync://sigunix.cwru.edu              9999 ms  30 hops    0% ok
rsync://ftp.esat.net                  9999 ms  30 hops    0% ok
rsync://ftp.gwdg.de                   9999 ms  30 hops    0% ok
rsync://ftp.kaist.ac.kr               9999 ms  30 hops    0% ok
rsync://ftp.inf.tu-dresden.de         9999 ms  30 hops    0% ok
rsync://mirror.averse.net             9999 ms  30 hops    0% ok

-- 
George

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019