commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: getservbyname
Date Mon, 02 Apr 2012 17:05:44 GMT
Hi Emmanual,

Emmanuel Bourg wrote:

> Le 02/04/2012 18:13, Jörg Schaible a écrit :
> 
>> Right. Best would be a system call, but I can also live with some
>> functionality that parses the etc/services in Linux/Windows directly. For
>> support in the Java runtime I only found a 15 year old enhancement
>> request in Oracles Bugzilla ... :-/
> 
> It should be easy to do this in a platform independent manner by parsing
> the IANA port database:
> 
> http://www.iana.org/assignments/service-names-port-numbers/service-names-
port-numbers.xml
> 
> That's the authoritative source for port names.

This is useless, you will need the current settings of the system. It is not 
uncommon in large companies to modify the "official" mappings, remove 
unwanted or add private ones.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message