v3.1.3
flutter_icmp_ping
一個向網路主機發送 ICMP ECHO_REQUEST 的 Flutter 插件。
15喜歡 4.3萬近 30 天下載150Pub 分數
AndroidiOS
發送 ICMP ECHO_REQUEST 的 Flutter 外掛
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter plugin that sends ICMP ECHO_REQUEST.
To use this plugin, add flutter_icmp_ping as a dependency in your pubspec.yaml file.
dependencies:
flutter_icmp_ping:
Import the library in your file.
import 'package:flutter_icmp_ping/flutter_icmp_ping.dart';
See the example directory for a complete sample app using Ping.
Or use the Ping like below.
try {
final ping = Ping(
'google.com',
count: 3,
timeout: 1,
interval: 1,
ipv6: false,
ttl: 40,
);
ping.stream.listen((event) {
print(event);
});
} catch (e) {
print('error $e');
}
依賴清單 4 項
^2.11.0{"sdk":"flutter"}{"sdk":"flutter"}^2.0.3先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗