Re: SCNetworkConnectionStart sometimes won't dial.
Re: SCNetworkConnectionStart sometimes won't dial.
- Subject: Re: SCNetworkConnectionStart sometimes won't dial.
- From: Jonathan Wight <email@hidden>
- Date: Tue, 25 May 2004 15:05:49 -0400
On May 20, 2004, at 12:47, Christophe Allie wrote:
>
On 5/20/04 9:09 AM, "Jonathan Wight" <email@hidden> wrote:
>
>
> 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.
>
>
When the service appears in the DynamicStore, it will become available
>
for
>
dialing.
>
>
You can loop around SCNetcworkConnectionCreateWithServiceID() until
>
you get
>
a valid reference back.
Well just waiting for a notification from dynamic store wasn't enough
so I resorted to looping around
SCNetcworkConnectionCreateWithServiceID().
Unfortunately that still isn't helping. It seems that it just won't
connect when it doesn't want to. Even though I can connect via Internet
Connect while waiting for my application to get a good response from
SCNetcworkConnectionCreateWithServiceID().
Any other suggestions?
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.