• 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: port number for NSSocketPort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: port number for NSSocketPort (From: j o a r <email@hidden>)

  • Prev by Date: Re: Annoying button highlight & create palettes
  • Next by Date: Re: Need Help with Obj-C -> Java bridge method calls with multiple arguments
  • Previous by thread: Re: port number for NSSocketPort
  • Next by thread: How-To: umbrella framework
  • Index(es):
    • Date
    • Thread