On 7 Jan 2016, at 08:43, Kevin Yu <kevi...@draytek.com> wrote:

> 1. The sleepWithCompletionHandler seems not work at all.

What platform are you testing this on?

> 2. I can not detect the connection is drop or not. Is it possible to use some 
> kind of timer (like NSTimer) in Network extension code? without timer, don’t 
> know when to check the connection state. NSTimer needs to work with Runloop, 
> the extension code can also use it?

You can always start your own thread and schedule run loop timers on that, but 
it might be simpler to use a dispatch timer event source.  It really depends on 
how the rest of your extension code is structured.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

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

Reply via email to