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: 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