Re: Advertising HTTP-service using RENDEZVOUS
Re: Advertising HTTP-service using RENDEZVOUS
- Subject: Re: Advertising HTTP-service using RENDEZVOUS
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 21 Jan 2004 09:43:38 -0800
On Jan 21, 2004, at 4:09 AM, Stefan Pantke wrote:
Unfortunately, Apple seems to supply no repository of name for
RENDEZVOUS
services. Nor did I found any link to HTTP advertisement.
Umm, Apple's not supposed to name Rendezvous services -- you're
supposed just to use the service's standard name -- typically as
defined by IANA:
<
http://www.iana.org/assignments/port-numbers>
although as Stuart Cheshire puts it, one of the major advantages of
Rendezvous is that it "frees you from the tyranny of named ports" --
that is, the service name is what's important, you can find out using
Rendezvous what port it's running on.
** To search for services:
- (void)searchForServicesOfType:(NSString *)type
inDomain:(NSString *)domainString
type contains service type and transport layer
Prefix with underscore "_"
Final "." is required
E.g., for HTTP over TCP use "_http._tcp."
** To publish a service
- (id)initWithDomain:(NSString *)domain type:(NSString *)type
name:(NSString *)name port:(int)port
domain
Local registration domain
Use @"" to get default domain
type
Must contain both the service type and transport layer
Prefix service and transport layer names with underscore ("_")
E.g., _http._tcp.
name
Unique identifier for service
Human-readable UTF-8 string
port
Port number for service
mmalc
_______________________________________________
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.