On 3/11/08, Jean-Daniel Dupas <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]