flutter_icmp_ping_platform 1.0.1 copy "flutter_icmp_ping_platform: ^1.0.1" to clipboard
flutter_icmp_ping_platform: ^1.0.1 copied to clipboard

Flutter plugin that sends ICMP ECHO_REQUEST to network hosts.

flutter_icmp_ping_platform #

Flutter plugin that sends ICMP ECHO_REQUEST.

Fork from pub package

Supported platforms #

  • Flutter Android
  • Flutter iOS
  • Flutter OHOS

Getting Started #

To use this plugin, add flutter_icmp_ping_platform as a dependency in your pubspec.yaml file.

dependencies:
  flutter_icmp_ping_platform:

Import the library in your file.

import 'package:flutter_icmp_ping_platform/flutter_icmp_ping_platform.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');
}
1
likes
90
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin that sends ICMP ECHO_REQUEST to network hosts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, flutter

More

Packages that depend on flutter_icmp_ping_platform

Packages that implement flutter_icmp_ping_platform