FLUTTER ECOSYSTEM

zuvola/flutter_icmp_ping

發送 ICMP ECHO_REQUEST 的 Flutter 外掛

flutter_icmp_ping 專案封面
Stars
5
Forks
15
最近推送(UTC)
2023年9月1日
專案狀態
未封存
zuvola GitHub avatar
GITHUB User

zuvola ↗

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