• 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: CC_OPT_GETMISCINFO status ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC_OPT_GETMISCINFO status ???


  • Subject: Re: CC_OPT_GETMISCINFO status ???
  • From: Herb Hrowal <email@hidden>
  • Date: Thu, 13 Jun 2002 15:01:30 -0700

on 6/13/2002 2:58 AM, Jirome Foucher at email@hidden wrote:

> Anyway, all I want is to get the PPP status of a connection initiated by
> OpenTransport.
> Yes I know that OpenTransport implementation on X is ... mmmh....
> horrible.
>
> I've been told tha notifiers don't work well and that instead I should
> poll using the CC_OPT_GETMISCINFO

This is true. We were forced to switch to the polling method as well.

> Unfortunately, I always receive error -3151 (kOTBadOptionErr) when
> trying to do that.
> Only the PP_OPT_GETCURRENTSTATE call work.

This is a documented problem although I don't remember where we found the
answer. The solution is to modify the initialization of the TOption and
TOptMgmt structures. On both structures you need to set the len member
to the full size of the buffer instead of just the size of the TOption
structure. Just use the same value you use for maxlen.

After making this change our PPP status problems on X went away and things
still worked beautifully on 9.

Hope this helps,

--
Herb Hrowal <email@hidden>
Staff Engineer, Mac Client Software
EarthLink, Inc.
_______________________________________________
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: CC_OPT_GETMISCINFO status ???
      • From: Jérome Foucher <email@hidden>
References: 
 >CC_OPT_GETMISCINFO status ??? (From: Jérome Foucher <email@hidden>)

  • Prev by Date: Re: Flood pings and memory leaks
  • Next by Date: Re: Flood pings and memory leaks
  • Previous by thread: CC_OPT_GETMISCINFO status ???
  • Next by thread: Re: CC_OPT_GETMISCINFO status ???
  • Index(es):
    • Date
    • Thread