Re: FW: failing opening socket

2008-08-25 Thread Michael Ash
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

FW: failing opening socket

2008-08-24 Thread Luca Ciciriello
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.

Re: failing opening socket

2008-08-22 Thread Jason Coco
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

Re: failing opening socket

2008-08-22 Thread Nick Zitzmann
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

failing opening socket

2008-08-22 Thread Luca Ciciriello
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