• 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
NSNetService ports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNetService ports


  • Subject: NSNetService ports
  • From: Francisco Tolmasky <email@hidden>
  • Date: Mon, 03 Nov 2003 20:33:52 -0800

Ok, I'm using NSNetService to create a rendezvous app and I'm a little
confused about the port number:

_service= [[NSNetService allocWithZone: [self zone]]
initWithDomain:@""
type: @"_service._tcp."
name: @"my great service"
port: 12345];

Is this just an arbitrary value, or is there a good way to get one?
Will using htons(0) get me a good port?

Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSNetService ports
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Help with Undo and MVC
  • Next by Date: Re: [OFF] Localisation (was Re: Security Framework: authorization rights.)
  • Previous by thread: Re: [OFF] Localisation (was Re: Security Framework: authorization rights.)
  • Next by thread: Re: NSNetService ports
  • Index(es):
    • Date
    • Thread