v3.1.3
flutter_icmp_ping
네트워크 호스트에 ICMP ECHO_REQUEST를 보내는 Flutter 플러그인입니다.
15좋아요 3만30일 다운로드150Pub 점수
AndroidiOS
ICMP ECHO_REQUEST를 전송하는 Flutter 플러그인
^2.11.0{"sdk":"flutter"}{"sdk":"flutter"}^2.0.3아래는 영문 원문 스냅샷입니다. 최신 내용은 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');
}