Re: Is PPP connected
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.