FLUTTER ECOSYSTEM

zuvola/flutter_icmp_ping

ICMP ECHO_REQUEST を送信する Flutter プラグイン

flutter_icmp_ping のプロジェクト画像
Stars
5
Forks
15
最終プッシュ(UTC)
2023/09/01
プロジェクト状態
公開中
zuvola GitHub avatar
言語Objective-CDartSwiftKotlinRubyC

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件
  • async^2.11.0
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^2.0.3

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

flutter_icmp_ping

Flutter plugin that sends ICMP ECHO_REQUEST.

pub package

Supported platforms

  • Flutter Android
  • Flutter iOS

Getting Started

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');
}