by rumcajz · 13y ago · 0 comments
Resolution of service names is a different matter. The authors of the Internet have solved it in a cheap-and-ugly way by introducing well-known ports. Unfortunately, the problem wasn't solved in a systematic manner since.
Moreover, I would say there's a need for location-dependent resolving of service names to limit the availablity of local services, to return a topologically close instance of the service etc.
All in all, the problem is far from being solved yet.
s = socket (AF_INET, SOCK_STREAM, 0);
bind (s, "myApplication1");
...
s = socket (AF_INET, SOCK_STREAM, 0);
connect (s, "myApplication1");
Propagation of the name outside of the LAN may require additional administrative work. I guess nobody will complain about that.What I like about DNS SRV is that it's standardized and relatively simple to handle, in contrast to some of the other naming schemes out there (eg. CORBA).
I agree though that tools / libraries need to get better here.