Re: "LastCause" code in PPP dictionary
Re: "LastCause" code in PPP dictionary
- Subject: Re: "LastCause" code in PPP dictionary
- From: dragana radulovic <email@hidden>
- Date: Thu, 17 Apr 2008 18:39:12 -0400 (EDT)
Guy,
thanks for the help.
I followed your link and I found this very helpful
file:
http://www.opensource.apple.com/darwinsource/10.5.2/ppp-314/Controller/English.lproj/Localizable.strings
Here is one part of it:
/*
PPP error strings
PPP will display one of the following LastCause
published in the service/state
of the PPP dictionnary.
PPP errors contain a PPP generic part in the key
"LastCause".
and a Device specific part in the key
"DeviceLastCause".
...
Device errors start from 1. PPP Error start from
0.
If the text for the error does not exist, the
error number will be displayed.
If the text for the error exist but is empty,
nothing will be displayed
PPP Error 5 is normal exit error and is special case
in the code.
*/
...
"PPP Error 8" = "The connection has failed. Please
verify your settings and try again."; ...
After failed connect attempt my PPP dictionary returns
"LastCause" key with CFNumber value 8 rather than the
string "The connection has failed. Please verify your
settings and try again." ("DeviceLastCause" key has
CFNumber with value 0).
When I used "Internet Connect" with the same device it
displayed the correct string after connect attempt
failed. How does "Internet Connect" get the string? Is
there maybe some API call which converts PPP error
code 8 to string "The connection has failed. Please
verify your settings and try again"?
(I'm using MacBook Pro with Mac OS X 10.4.11)
Thanks!
Dragana
--- Guy Meyer <email@hidden> wrote:
>
> On Apr 17, 2008, at 10:07 PM, dragana radulovic
> wrote:
>
> > Hi,
> >
> > I used SCNetworkConnectionCopyExtendedStatus to
> obtain
> > status dictionary of my PPP connection after it
> fails
> > to connect. Value of the "LastCause" key of PPP
> > dictionary is populated with NSNumber.
> > I searched all documentation for the explanation
> of
> > this code returned by "LastCause" but I couldn't
> find
> > anything.
> > "DeviceLastCause" is also populated but I don't
> know
> > how to interpret this value as well.
> >
> > Any help is greatly appreciated.
> >
> > Thanks!
> >
> > Dragana
>
> For last disconnection cause take a look at
> ppp.msg.h file included in
> the ppp source code available from the Darwin source
> code
>
>
<http://www.opensource.apple.com/darwinsource/10.5.2/>
>
> - Guy
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden