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 16:13:17 GMT
Hi Emmanuel,

Emmanuel Bourg wrote:

> Le 02/04/2012 16:41, Jörg Schaible a écrit :
> 
>> do we have somewhere an equivalent for the C system call getservbyname in
>> commons?
> 
> You mean something that map a service name (http, ssh) to a port number
> (80, 22) ?

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 ... :-/

- 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