Re: OT/PPP, OTIoctl & asynchronous completion events
Re: OT/PPP, OTIoctl & asynchronous completion events
- Subject: Re: OT/PPP, OTIoctl & asynchronous completion events
- From: Richard Buckle <email@hidden>
- Date: Tue, 28 Oct 2003 01:34:20 +0000
At 10:00 pm -0700 10/9/03, Xavier Jubier <email@hidden> wrote:
I need to write a CFM library to make programmatically OT/PPP calls
under OS 9 and OS X.
Under OS 9 how can I wait for the asynchronous completion events of the
notifier proc after the following call
myOTStatus = OTIoctl(myEndpointRef, I_OTConnect, NULL);
without hanging all the system (i tried with synchronous and
asynchronous endpoints with the same result)?
I tried with a do while loop calling WaitNextEvent() but that doesn't
work.
Any idea or sample code?
I see from later threads that you've already solved this problem, but
I'll send this anyway.
A long time ago, I wrote a "Universal PPP API" that did all this
stuff under Mac OS 7-9, for all the commonly available PPP drivers,
not just OT/PPP. Unfortunately I never got time to add full Mac OS X
support using SCF etc, but the architecture is all set up waiting for
the stubs to be filled in.
<
http://www.sailmaker.co.uk/progtools.html#pppapi>
Anyway, have a look. I'm minded to make this code open-source under a
BSD-ish licence, and it would be nice to fill in the Mac OS X stuff
at the same time. If you're interested, mail me off-list and I'll
send you the source.
Richard.
--
Sailmaker Software: Programming and consultancy services.
<
http://www.sailmaker.co.uk/>
PGP key: E88BA153 = 140D E231 73C5 CA24 CD48 FE4C BDA9 308C E88B A153
_______________________________________________
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.