NSNetService ports
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.