failing opening socket
failing opening socket
- Subject: failing opening socket
- From: Luca Ciciriello <email@hidden>
- Date: Fri, 22 Aug 2008 18:12:41 +0100
- Importance: Normal
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 for any idea.
Luca.
_________________________________________________________________
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden