Re: SCNetworkConnectionStart sometimes won't dial.
Re: SCNetworkConnectionStart sometimes won't dial.
- Subject: Re: SCNetworkConnectionStart sometimes won't dial.
- From: Christophe Allie <email@hidden>
- Date: Wed, 19 May 2004 22:34:45 -0700
On 5/19/04 1:44 PM, "Jonathan Wight" <email@hidden> wrote:
>
> I don't know if this is related, but I'll throw it out and see what
>
> happens...
>
>
>
> Our app has had a long standing problem with the modem not being ready
>
> to make a PPP call if we initiate the call immediately after creating
>
> our network location. In other words, if we create our network
>
> location with all of our PPP settings and then ask OT to start the PPP
>
> session, it will almost always fail. Subsequent connections sometimes
>
> fail as well.
>
>
>
> What we discovered was that there is some amount of time we have to
>
> wait after setting the network location before asking OT to start PPP.
>
> Five seconds seems to cover all the cases, although the specific
>
> amount of time needed seems to vary by machine model. With the delay
>
> in place, calls work perfectly (other than the user complaints about
>
> slow PPP connection times...)
>
>
>
> We were hoping the new SCF PPP APIs in Panther would fix this, but we
>
> have not had a chance to try them.
>
>
This sounds just like what I've been seeing.
>
>
I've toyed with putting in a delay but would definitely consider that a
>
last resort.
>
>
Wish I had an a real fix though.
>
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.
Christophe.
_______________________________________________
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.