0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

hinemous

0
Last updated at Posted at 2025-01-18

hinemousがJavaで作られているので、Javaで学習のために読んでみる

ping監視に関して

ping監視がどのように実施されているか確認してみた。

// Reachability のチェック ICMP が使用される
				boolean isReachable;
				// isReachableがスレッドセーフではないため、同期
				synchronized (m_syncObj) {
					start = HinemosTime.currentTimeMillis();
					isReachable = address.isReachable(m_timeout);
					end = HinemosTime.currentTimeMillis();
				}

勝手にping実行しているんだろうって思っていたことが恥ずかしい。。。

Javaはpingコマンドは不要なんだ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?