Re: Creating an NSSocketPort on an available port?
Re: Creating an NSSocketPort on an available port?
- Subject: Re: Creating an NSSocketPort on an available port?
- From: "Mac QA" <email@hidden>
- Date: Tue, 11 Mar 2008 12:30:23 -0400
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>?
_______________________________________________
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