Re: Error codes
Re: Error codes
- Subject: Re: Error codes
- From: Matt Jaffa <email@hidden>
- Date: Mon, 22 Mar 2004 16:34:32 -0700
So do OT/Classic developers or experts usually watch this list,
or is there some other way of contacting them?
Thanks,
Matt
On Mar 22, 2004, at 10:08 AM, Justin Walker wrote:
On Mar 22, 2004, at 7:59, Matt Jaffa wrote:
I was wondering what error code I should throw.
You may not be alone :-}
I am intercepting TCP traffic through my KEXT,
after the result comes back from the daemon and I want to block the
traffic,
What is the best error to throw that will let internet explorer in
classic not try the URL again.
It works for Safari and IE(non classic version) if I use ENETDOWN,
EACCES,
and they don't try it again.
But when I am using those errors for Classic's IE it blocks but keeps
trying the URL over and over again.
There could be many reasons for this behavior, and you'll need an OT
expert to unravel them...
- Classic, and OT in particular, was not built with Unix-style errno
codes in mind. The deeper recesses of OT do use the same error code
names, though, but they use a different version of the header
<sys/errno.h>. In particular, it's possible that EACCES (on Mac OS X)
and EAGAIN (on Classic/OT/Mentat) (for example) share the same numeric
code. That would be a bummer, of course. An OT expert will have to
share his understanding of this one.
- The Classic version of IE doesn't know what to do with EACCES.
Again, an OT expert may have the answer.
- The error code returned by your NKE gets lost somewhere between
your NKE and IE; if it doesn't get lost, it gets translated; see the
previous two comments.
I think you get the drift. It's not a problem that can easily be
solved, since the two systems (Mac OS X and Classic/OT) were never
intended to merge smoothly together.
Hope that helps clarify things (and, perhaps, prompts someone with
Knowledge to pipe up).
Cheers,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | If you're not confused,
| You're not paying attention
*--------------------------------------
*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.