Re: OTAsyncOpenEndpointInContext returns -3200 (Permission denied)
Re: OTAsyncOpenEndpointInContext returns -3200 (Permission denied)
- Subject: Re: OTAsyncOpenEndpointInContext returns -3200 (Permission denied)
- From: "Duane Murphy" <email@hidden>
- Date: Sun, 11 Jan 2004 16:29:41 -0800
--- At Mon, 12 Jan 2004 01:44:05 +0300, Igor garnov wrote:
>
Hello!
>
>
I am having a problem when I call:
>
>
OTAsyncOpenEndpointInContext( OTCreateConfiguration( kRawIPName ), ... )
>
>
( Mac OS X 10.2.6 )
>
>
I have not tested the code on Mac OS 9 yet.
>
>
The function returns immediately -3200 (Permission denied).
>
How am I supposed to implement a ping routine, if I cannot just open an
>
endpoint? Or am I missing something?
>
>
I would be very grateful if somebody pointed me to documentation on
>
Open Transport where raw IP issues would be covered in detail, because
>
what I have found in "Inside Macintosh: OT Networking" just mentions
>
raw IP slightly.
>
Any sample code on raw IP issues with Open Transport would also be
>
greatly appreciated.
If you want to do Ping for Mac OS 9 on Mac OS 9 (as opposed to in
Classic), then you should not have any trouble.
If you want to do Ping on Mac OS X, you have to think like Unix. Mac OS
no longer applies. Network security is enforced on Mac OS X.
Instead of implementing Ping _again_ on Mac OS X, we chose to exec the
ping command and parse the results. Pretty straightforward and works well.
If you want to do "other" things with ICMP beyond Ping, then you get to
learn all about how to authenticate processes to have them run as root.
Keep in mind that authentication is another chapter of learning beyond
networking.
Enjoy,
...Duane
_______________________________________________
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.