• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SCNetworkConnectionStart sometimes won't dial.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SCNetworkConnectionStart sometimes won't dial.


  • Subject: Re: SCNetworkConnectionStart sometimes won't dial.
  • From: Jonathan Wight <email@hidden>
  • Date: Thu, 20 May 2004 12:09:30 -0400

On May 20, 2004, at 11:05, Dave Camp wrote:

> On May 19, 2004, at 10:34 PM, Christophe Allie wrote:
>
>> On 5/19/04 1:44 PM, "Jonathan Wight" <email@hidden> wrote:
>>
>> Once you create you network connection, several notifications will be
>> propagated and at some point SCNetworkConnection API will get them
>> and you
>> service will become available.
>>
>> If you really want to make a connection as soon as it is available,
>> you can
>> install a SCDynamicStore notification on the appropriate key in the
>> dynamic
>> store. Although there could possibly be a small window of non
>> availability
>> depending on how the processes are scheduled.
>
> So, you are saying there is a notification we can get that will tell
> us when it's safe to start attempting a PPP connection (i.e. we can
> start the connection process and won't get random errors because we
> did not wait long enough). If that is the case I guess I've got some
> more reading to do...

Thanks Christophe.

I'm now watching the dynamic store for changes to
"State:/Network/Service/[^/]+" via SCDynamicStoreSetNotificationKeys (I
should probably just watch for "State:/Network/Service/<my set id>"
instead). It seems to be doing the right thing.

But the problem is so timing dependent that its hard to tell for sure
if this will work for good.

Jon.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: SCNetworkConnectionStart sometimes won't dial.
      • From: Christophe Allie <email@hidden>
References: 
 >Re: SCNetworkConnectionStart sometimes won't dial. (From: Christophe Allie <email@hidden>)
 >Re: SCNetworkConnectionStart sometimes won't dial. (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Proper SMB URL format for FSMountServerVolumeSync?
  • Next by Date: Re: SCNetworkConnectionStart sometimes won't dial.
  • Previous by thread: Re: SCNetworkConnectionStart sometimes won't dial.
  • Next by thread: Re: SCNetworkConnectionStart sometimes won't dial.
  • Index(es):
    • Date
    • Thread