• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
failing opening socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: failing opening socket
      • From: Jason Coco <email@hidden>
    • Re: failing opening socket
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Tabbed preference panels
  • Next by Date: Re: Object change to NSView update
  • Previous by thread: Noobie CalEvent question
  • Next by thread: Re: failing opening socket
  • Index(es):
    • Date
    • Thread