On Mon, Aug 25, 2008 at 2:28 AM, Luca Ciciriello
<[EMAIL PROTECTED]> wrote:
>
> Thanks for the answer.
> Yes, I'm working as root but I'm still unable to find a solution to my
> problem. Unfortunately I've to implement this blessed ping function in C++
> inside my cocoa app. I've used the followi
ux works fine).
Thanks in advance for any idea.
Luca
>
>> From: [EMAIL PROTECTED]
>> To: cocoa-dev@lists.apple.com
>> Date: Fri, 22 Aug 2008 18:12:41 +0100
>> Subject: failing opening socket
>>
>>
>> Hi all.
On Aug 22, 2008, at 13:12 , Luca Ciciriello wrote:
Hi all.
I'm porting a Linux project (using sockets to implement a ping
function) on Mac OS X. My problem is that the function:
int sock_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
returns always -1.
Where is my mistake? For me is the
On Aug 22, 2008, at 11:12 AM, Luca Ciciriello wrote:
int sock_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
returns always -1.
Where is my mistake? For me is the very first time using socket on
Mac.
Is your application running as root? Attempts to create raw sockets
don't work if you
Hi all.
I'm porting a Linux project (using sockets to implement a ping function) on Mac
OS X. My problem is that the function:
int sock_icmp = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
returns always -1.
Where is my mistake? For me is the very first time using socket on Mac.
Thanks in advance