Select server based on proximity

2010-12-06 Thread Heizer, Charles
I'm writing a app that will download and install some software. I would
like to use a distributed download model where the client has a list of
servers and determines which is the one closest to it's self and uses that
one.

Is there a API or something to do this?

Thanks,
Charles


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Select server based on proximity

2010-12-06 Thread jonat...@mugginsoft.com

On 6 Dec 2010, at 21:38, Heizer, Charles wrote:

 I'm writing a app that will download and install some software. I would
 like to use a distributed download model where the client has a list of
 servers and determines which is the one closest to it's self and uses that
 one.
 
 Is there a API or something to do this?
 
 Thanks,
 Charles
 

What about using traceroute(8) to count hops?

Richard Stevens gives a C implementation example:

http://books.google.co.uk/books?id=ptSC4LpwGA0Cpg=PA755lpg=PA755dq=traceroute+apisource=blots=Kq9yRnbqOqsig=RywJNgi3MG21DbSIIO5-7oJqVeQhl=enei=Gln9TKnVNcrPhAfTu4SVCwsa=Xoi=book_resultct=resultresnum=6sqi=2ved=0CEAQ6AEwBQ#v=onepageq=traceroute%20apif=false

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com