• 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
PPPLib Error Problems Part 3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PPPLib Error Problems Part 3


  • Subject: PPPLib Error Problems Part 3
  • From: Chris Cooksey <email@hidden>
  • Date: Sat, 01 Feb 2003 02:12:08 -0500

>> I just found what is different between my tester's machine and my own. The
>> tester is running Mac OS 10.2 and I am running 10.1. Does anyone know why
>> PPPLib under 10.2 might be favoring PPP_ERR_GEN_ERROR over the NODIALTONE or
>> LINEBUSY errors?
>>
> I ran into the same problem when switching to 10.2. I think it probably had to
> do with the fact that I wasn't looking for the error in the correct place. In
> 10.1 you could find the error code in ppp_msg_hdr. m_cookie.
>
> In 10.2 this always comes back as a generic error. However, you can find the
> correct error in ppp_status.s.disc.lastDiscCause if ppp_status.status ==
> PPP_IDLE and ppp_msg_hdr.m_result == PPP_EVT_DISCONNECTED.

Thanks Herb -that was exactly the problem I had. I now use PPPStatus() after
receiving PPP_EVT_DISCONNECTED and I examine the
ppp_status.s.disc.lastDiscCause to find out what really caused the
disconnect. Using m_cookie from the event itself only works under 10.1.

Thanks Christoph for checking the code and confirming the difference between
10.1 and 10.2.

Chris.
_______________________________________________
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.

  • Next by Date: Re: macnetworkprog digest, Vol 3 #336 - 9 msgs
  • Next by thread: Re: macnetworkprog digest, Vol 3 #336 - 9 msgs
  • Index(es):
    • Date
    • Thread