• 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
Obtaining port from NSSocketPort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obtaining port from NSSocketPort


  • Subject: Obtaining port from NSSocketPort
  • From: Charles Françoise <email@hidden>
  • Date: Fri, 15 Oct 2004 18:59:45 +0300


I created a NSSocketPort using :

mySocketPort = [[NSSocketPort alloc] initWithTCPPort:0];

this is supposed to use an arbitrary port. The problem is, I don't know how to obtain the port that has been open.

[mySocketPort address] returns a NSData object but I don't know what to do with it.

Help anyone ?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Obtaining port from NSSocketPort
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Re: objectForKey
  • Next by Date: Reading binary files
  • Previous by thread: Re: objectForKey
  • Next by thread: Re: Obtaining port from NSSocketPort
  • Index(es):
    • Date
    • Thread