Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is PPP connected



We talk to pppconfd, and it is very nice indeed. Using OT for this on X
brought many perils. Check out the ppp sources from Darwin 6.0.1 to find a
sample.

On 10/15/02 7:52 AM, "email@hidden" <email@hidden> wrote:

> Hi,
> As it seems like the Open Transport is getting the messages wrongly, I
> have been pointed to the ppplib direction in trying to get the equivalent
> messages lower down, I guess before OT gets them.
>
> I have got the .h & .c file for doing this but I do not see how these
> could provide how the steps of the phone call are proceeding e.g. Dialing,
> connecting, authorizing, starting protocols ..etc.
>
> As I couldn't seem to find any samples actually using these APIs, could
> some-one shed some light on this would be much appreciated.
>
> I would be interested in how the "Internet Connect", tracks this, as I
> want to do exactly the same thing, and this seems to work fine.
>
> Thanks
> Mark.
>
> ------------------------------------------------------------------------
>
>> Message: 1
>> Date: Thu, 10 Oct 2002 15:31:24 +0100
>> Subject: Re: Re(4): Is PPP connected
>> From: <email@hidden>
>> To: <email@hidden>
>> CC: Jens Bauer <email@hidden>
>> Reply-To: email@hidden
>> 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.
> _______________________________________________
> 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.


--
Kris Amico <email@hidden>
AIM: Kris Amico, Jabber: email@hidden
Senior Software Engineer
Macintosh Client Software Development
EarthLink, Inc.
_______________________________________________
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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.