FLUTTER ECOSYSTEM

zuvola/flutter_icmp_ping

Plugin Flutter que envia ICMP ECHO_REQUEST

Capa do projeto flutter_icmp_ping
Stars
5
Forks
15
Último push (UTC)
1 de set. de 2023
Status do projeto
Ativo
zuvola GitHub avatar
GITHUB User

zuvola ↗

LinguagensObjective-CDartSwiftKotlinRubyC

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 4 itens
  • async^2.11.0
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^2.0.3

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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