Re: OK, I'm stumped - Why doesn't this work?
Re: OK, I'm stumped - Why doesn't this work?
- Subject: Re: OK, I'm stumped - Why doesn't this work?
- From: Dakidd <email@hidden>
- Date: Wed, 24 Nov 2004 12:54:13 -0800
Quinn sayeth:
<whole lotta snippin' goin' on>
>The reality is that you shouldn't be initialising OT within a library
>routine like this.
I've taken another route entirely with this little project, so the code
snippet posted with the question is no longer worth diddly.
>On the minor nitpick side of things, you can clear memory with
>OTMemzero rather than rolling your own code.
<nods> Just that it was more convenient at the moment to do it the way I did.
>As to your specific questions...
>
>> // Invariably, "Error" returns from the above call holding -3201.
>> // Looking in MacErrors.h for an explanation shows two separate
>> // errors that map to -3201:
>>// kOTNotFoundErr = -3201, /* OT generic not found error */
>>
>>// kENOENTErr = -3201, /* No such file or directory */
>> // First problem: Which error am I actually seeing?
>
>Both errors mean the same thing. kOTNotFoundErr is a nice Mac-style
>name for kENOENTErr, which in turn is the OSStatus translation of the
>ENOENT error code within the OT kernel.
But neither of them says anything whatsoever about needing to open an
endpoint before trying to get interface info, which was what turned out to
be the root of my problem - Once I threw in some code to open a dummy
endpoint before making the OTGetInterfaceInfo() call, the rest of my code
"just worked" - exactly as it should have.
Oh well... As I said, I've taken off in a completely different direction
with this project, so it gets chalked up as a combination waste of
time/learning experience.
Don Bruder - email@hidden <--- Preferred Email - unmunged
I will choose a path that's clear: I will choose Free Will! - N. Peart
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden