On 2 April 2012 17:13, Jörg Schaible <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to