| Article: |
Incorporating Rendezvous into Your Cocoa Applications, Part 2 | |
| Subject: | Service Types | |
| Date: | 2002-11-18 08:27:18 | |
| From: | anonymous2 | |
|
Ok, so an immediate applcation of this would be to write a small app that simply browses the local net for all services of a given type. Might be interesting to find out, who has personal File Sharing or (worse) Printer Sharing turned on.
|
||
Showing messages 1 through 1 of 1.
-
Service Types
2002-11-18 19:07:36 Michael Beam |
[View]



I should have mentioned this in the article, but there are many common service types that are publicly known. If you look in the file /etc/services you will see the names of the "well known" services. This file shows the service name and protocol, which you can put together into a service type: _name._protocol.
I suppose there is always the possibility of conflicting service types, and fortunately the worst thing that can happen is that your app can't connect to a service advertised with the same type name, yet really a different service (sure, this isn't really a trivial thing, but I believe the chances of conflicts are pretty low). Application designers can also give more unique service names, such as _mikebeam_rce._tcp.
About a browsing application, there is code for a service publisher/browser pair of apps that you get in the open source Rendezvous package that I mentioned in the article.
Hope that clears things up...
Mike