Re: [TRTFM]ICMP ping using Obj-C
Re: [TRTFM]ICMP ping using Obj-C
- Subject: Re: [TRTFM]ICMP ping using Obj-C
- From: Malte Tancred <email@hidden>
- Date: Thu, 15 Aug 2002 09:52:26 +0200
On wednesday, august 14, 2002, at 11:00 , email@hidden wrote:
Well I have thought of that but wouldn't that be C?
I can also take ping cmd line as a TOOL and import it into the project.
But It would be cleaner code if all of the code is in OBJ-C, don't you
think....
So, it looks like i'll have to rewrite the ping.c to ping.m : /
Erick
Just be aware that if you want to send ICMP packets you must use raw
sockets, and a process that wants to do that must be run as root.
If you want to use ping as part of an application that a normal user
will be able to run, the simplest approach would probably be to run the
ping command using an NSTask.
Just a thought,
Malte
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.