This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: netselect on Cygwin


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]