commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: getservbyname
Date Mon, 02 Apr 2012 16:33:49 GMT
On 2 April 2012 17:13, Jörg Schaible <joerg.schaible@gmx.de> wrote:
> 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 ... :-/

It looks as though Tomcat Native has access to the C routine via JNI,
but it would be nice to have a pure Java implementation.

Sounds like a suitable enhancement for Commons NET?

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

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


Mime
View raw message