• 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
Re: Creating an NSSocketPort on an available port?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an NSSocketPort on an available port?


  • Subject: Re: Creating an NSSocketPort on an available port?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 11 Mar 2008 17:40:14 +0100


Le 11 mars 08 à 17:30, Mac QA a écrit :
On 3/11/08, Jean-Daniel Dupas <email@hidden> wrote:
 struct sockaddr_in* addr4;
 NSData *data = [receivePort address];
 if (data) {
   addr4 = (struct sockaddr_in *)[data bytes];
   port = ntohs(addr4->sin_port);
 }

Any clue why something like this would produce an "error: dereferencing pointer to incomplete type" on the "addr4->sin_port" line even though I have #include <sys/socket.h>?

#include <netinet/in.h>


_______________________________________________

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


References: 
 >Creating an NSSocketPort on an available port? (From: "Mac QA" <email@hidden>)
 >Re: Creating an NSSocketPort on an available port? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Creating an NSSocketPort on an available port? (From: "Mac QA" <email@hidden>)

  • Prev by Date: Re: Creating an NSSocketPort on an available port?
  • Next by Date: Re: Button on a button
  • Previous by thread: Re: Creating an NSSocketPort on an available port?
  • Next by thread: warning: assignment from distinct Objective-C type
  • Index(es):
    • Date
    • Thread