• 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: Re(2): Is PPP connected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re(2): Is PPP connected


  • Subject: Re: Re(2): Is PPP connected
  • From: <email@hidden>
  • Date: Thu, 03 Oct 2002 16:03:58 +0100
  • Organization: Coderus Ltd

Hi,
Thanks, Yes I to, do a mixture of Polling tracking these events, as I Poll
while is Connecting and examine the Misc events for

Dialing
Authenticating
Starting Network Protocols
Completed.

Which I show, but cannot seem to do now for MacOS-X :-(. I have seen that
you get 3 events values, when I start a connection

0x21000005

0x230F0001 ( kPPPConnectCompleteEvent , cookie is NULL )

0x21000005

I haven't worked out what 0x21000005 is yet, but they seem to happen very
early on.

Thanks
Mark.

> Hi Mark,
>
> I too wanted to get that status this way on my Mac OS 9 version of a
> dialing application.
> The only way I found, to get the status, is to poll. I don't remember
> what exactly I did, but I never received much information in the notifier.
> -You *do* get some information, I think, such as "Connected" and
> "Disconnected", but as it is around a year ago I made the code, my memory
> is a bit unclear at this moment. ;)
> I can try and dig into the information later, as I got to go soon, but
> will probably be back in 5 hours or so.
>
>
> On Thu, 3 Oct, 2002, email@hidden <email@hidden> wrote:
>
>> Hi,
>> Thanks for that, I have fixed up the code so I try to connect and
>> disconnect, which works great, but I don't get any of the extra message I
>> asked for so I can update how the connection is going (I have a status
>> window)
>>
>> EndpointRef endPoint =
>> ::OTOpenEndpointInContext(OTCreateConfiguration(kPPPControlName),0, nil,
>> &result, NULL );
>>
>> // We need to install an event tracker for the progress
>> OTInstallNotifier(endPoint, NewOTNotifyUPP((OTNotifyProcPtr)notifyProc),
>> (void*) pDialog);
>> OTSetAsynchronous(endPoint);
>>
>> ::OTIoctl( endPoint, I_OTGetMiscellaneousEvents, (void*)1 );
>>
>> // Initiate the connection then
>> ::OTIoctl ( endPoint, I_OTConnect, NULL );
>>
>> Is this what you were implying ???. The messages I'm using in 9.x are
>>
>> case kPPPDCEInitStartedEvent:
>> case kPPPDCECallFinishedEvent:
>> case kPPPDCECallStartedEvent:
>> case kPPPLowerLayerUpEvent:
>> case kPPPAuthenticationStartedEvent:
>> case kPPPAuthenticationFinishedEvent:
>> case kPPPIPCPUpEvent:
>> case kPPPConnectCompleteEvent:
>>
>> Any ideas, or do I have to go a separate route now ???.
>>
>> Thanks
>> Mark.
>>
>>> At 11:59 PM +0100 9/30/02, <email@hidden> wrote:
>>>> Will I be able to re-use my code from MacOS 9.x for initiating a
> connection
>>>> via
>>>>
>>>> ::OTIoctl ( endPoint, I_OTConnect, NULL );
>>>
>>> [snip]
>>>
>>>> Or do I need to do something else now for MacOS - X, I can tell that
> I need
>>>> something else for setting up the configuration.
>>>
>>> You should be able to reuse at least some of this code. Initiating
>>> and closing a connection should be the same.
>
>
> Love,
> Jens
_______________________________________________
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.

  • Prev by Date: Re: Is PPP connected
  • Next by Date: Re: Is PPP connected
  • Previous by thread: Re: Is PPP connected
  • Next by thread: Multi homing
  • Index(es):
    • Date
    • Thread