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

Re: Is PPP connected


  • Subject: Re: Is PPP connected
  • From: Dave Camp <email@hidden>
  • Date: Thu, 3 Oct 2002 08:25:39 -0700

You code looks correct to me (it pretty much looks like some code I'm working on right now that does work).

Dave

On Thursday, October 3, 2002, at 07:02 AM, <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.
_______________________________________________
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.


---
It's not denial. I'm just very particular about the reality I choose to accept. -Calvin
_______________________________________________
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.
References: 
 >Re: Is PPP connected (From: <email@hidden>)

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