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