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=ptSC4LpwGA0C&pg=PA755&lpg=PA755&dq=traceroute+api&source=bl&ots=Kq9yRnbqOq&sig=RywJNgi3MG21DbSIIO5-7oJqVeQ&hl=en&ei=Gln9TKnVNcrPhAfTu4SVCw&sa=X&oi=book_result&ct=result&resnum=6&sqi=2&ved=0CEAQ6AEwBQ#v=onepage&q=traceroute%20api&f=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


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