[Gllug] sorts of ports
Paul Brazier
pbrazier at cosmos-uk.co.uk
Tue Sep 4 13:24:14 UTC 2001
> That's a good idea, but instead of making these unique service
> identifiers strings, we could assign a number to each service. 'http'
> could be '80', for instance. Ooops, port numbers again.
Well, to the computer strings are numbers really underneath as well. I
suppose it's a case of using the /etc/services (?) file to translate
"ports" to daemons instead of using ASCII. Although it doesn't even need
to know ASCII to compare two strings (e.g. if the header contains
"httpd" then notify "httpd" or whatever), it just makes it more
"human-readable".
I suppose when it was invented diskspace/bandwidth etc was very precious
and human-readability wasn't an issue. Now with XML etc the trend is
swinging the other way.
(Disclaimer: I don't really know what I'm talking about :-) but maybe
it's good sometimes to have a view without pre-conceived ideas)
> More seriously, your scheme does not permit running services on
> non-standard ports (perhaps several such), and offers no advantages.
Surely it caters in theory for an _infinite_ number of "ports" - if you
run a server called "asdfasdf", this string *is* the port, and just
looks for/is sent IP packets with "asdfasdf" in the header.
It wouldn't allow multiple http servers to run on one machine (on
different "ports") but would you need this? Doesn't inetd sort this out
or something?
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the originator.
This footnote also confirms that this email message has been checked
for the presence of computer viruses.
**********************************************************************
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list