Re: Re(4): Is PPP connected
Re: Re(4): Is PPP connected
- Subject: Re: Re(4): Is PPP connected
- From: <email@hidden>
- Date: Thu, 10 Oct 2002 15:31:24 +0100
- Organization: Coderus Ltd
Hi,
I don't think the I_OTGetMiscellaneousEvents is working in the same or
similar manor to how its working on MacOS 9.x compared on MacOS X. I have
outputted to the debugger log of code, result & the cookie values, when the
modem is dialing and successfully connecting :-
On 10.2 (Carbon) returned
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20225); g
code (0x230f0001 = kPPPConnectCompleteEvent ),result(1), cookie(0); g
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20228); g
code (0x230f000d = kPPPDCEInitStartedEvent), result(0), cookie(0); g
code (0x230f000e = kPPPDCEInitFinishedEvent), result(0), cookie(0); g
code (0x230f0009 = kPPPLowerLayerUpEvent), result(0), cookie(0); g
code (0x230f0007 = kPPPLCPUpEvent), result(0), cookie(0); g
On 10.1.5 (Carbon & Mach-O runtime)
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20225) ;g
code (0x230f0001 = kPPPConnectCompleteEvent), result(1), cookie(0) ;g
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20228) ;g
On 9.x (Classic) returned
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20225)
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20228)
code (0x230f0001 = kPPPConnectCompleteEvent), result(0), cookie(1)
code (0x230f000f = kPPPDCECallStartedEvent), result(0), cookie(0)
code (0x230f0009 = kPPPLowerLayerUpEvent), result(0), cookie(0)
code (0x230f0005 = kPPPIPCPUpEvent), result(0), cookie(0)
code (0x230f0001 = kPPPConnectCompleteEvent), result(0), cookie(0)
code (0x21000005 = kStreamIoctlEvent), result(0), cookie(20225)
I am aware that I_OTGetMiscellaneousEvents is broken, but is suppose to
fixed for 10.2 and above.
What I find weird when comparing 10.2 messages and 9.x messages is the
first kPPPConnectCompleteEvent message is that on 9.x cookie is 1, which
makes sense, as we are being to dial, but on 10.2 the cookie is 0, which is
connected which doesn't make sense, as we haven't event dialed yet ??? (from
documentation OT/PPP Client Dev Note 1.0.pdf), but I do find strange that
result value is 1, have they been reversed ???, also you don't get a message
saying its connect (i.e. Another kPPPConnectCompleteEvent message)
Any ideas anyone, as I don't see how any carbon code could possibly work on
9.x and X (My machine is G3 Pismo portable, if that matters, but hoping not)
Thanks
Mark.
>
Hi Mark,
>
>
On Thu, 3 Oct, 2002, email@hidden <email@hidden> wrote:
>
>
> 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
>
>
kStreamIoctlEvent = 0x21000005, /* An Ioctl call is
>
complete */
>
>
>
> 0x230F0001 ( kPPPConnectCompleteEvent , cookie is NULL )
>
>
look at the result-code, and see what this is. :)
>
>
> 0x21000005
>
>
>
> I haven't worked out what 0x21000005 is yet, but they seem to happen very
>
> early on.
>
>
Yes, as you can see above on the name, it's just an acknowledge that your
>
Ioctl is complete.
_______________________________________________
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.