G
G
GlukKazan2013-11-08 11:10:59
linux
GlukKazan, 2013-11-08 11:10:59

Implementing ICMP Ping in Java under Linux

I needed to automatically ping a large number of devices with a Java SE program. The solution was found quickly, but it did not work under Windows. Since it was required to implement this functionality under Windows too, I had to use a third-party library . Actually, both solutions (on their platforms) work perfectly, but there is a paradoxical situation. The Verax library allows you to ping multiple addresses in parallel and, most importantly, can do it asynchronously. Under Linux, you have to use isReachable, which pings one address synchronously. Linux is considered the main platform (but uses a less performant ICMP solution).

In this regard, the question is: maybe someone knows a JNI library for ICMP Ping (if there is also a traceroute, under root rights, of course, it will be generally great) that works under Linux? The main criterion is the ability to perform parallel asynchronous pings. Solutions of the following type are not interesting.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
@
@xave, 2013-11-08
_

deleted

T
tonyvelichko, 2013-11-10
@tonyvelichko

There is a wrapper for PCAPtyts .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question