Re: port number for NSSocketPort
Re: port number for NSSocketPort
- Subject: Re: port number for NSSocketPort
- From: Lloyd Dupont <email@hidden>
- Date: Fri, 30 May 2003 09:35:01 +1000
Perhaps this will work:
yes it does.
thanks.
#import <netinet/in.h>
#include <arpa/inet.h>
{
struct sockaddr_in addrIn = *(struct sockaddr_in
*)[[myNSSocketPort address] bytes];
NSLog(@"Port: %d", addrIn.sin_port);
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.