Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duration of functions



>Which functions can be expected to complete right away, and which may take
>a long time. And, how long is a "long time"?
>
>How long could a resolve take?

No more than 2 seconds if the device is turned on and plugged in. If the 
device is not, it takes as long as it takes for the user to realize the 
problem, and turn it on or plug it in.

>How long could a browse for services take (for services that are register
>at the start of the browse)

A browse is an ongoing operation. It gives you "add" and "remove" events 
for as long as the user is interested in seeing the result of that browse 
operation. It would be a gross error to ever conclude that a browse 
operation is "done", and you can stop paying attention to "add" and 
"remove" events. If you did that, you'd then need to add a "refresh" 
button to your UI, and as we all know, making the user click a "refresh" 
button for no reason instantly labels your product as inferior. You don't 
want to do that.

>How long could a register take?

You should get the first success or failure callback within a second or 
two.

>How long could it take to notice a collision?

A conflict can occur at any time. If a user takes a laptop and joins a 
new network where your name is already in use, then you'll get a callback 
to tell you. This could happen days or weeks after your service started. 
In the world of networking, and especially mobile networking, there are 
no guarantees. What is true now might change in the future. Just because 
there's no conflict when your service starts doesn't mean there never 
will be one in the future.

Stuart Cheshire <email@hidden>
 * Wizard Without Portfolio, Apple Computer, Inc.
 * www.stuartcheshire.org
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.