data_connection_checker 0.1.0 copy "data_connection_checker: ^0.1.0" to clipboard
data_connection_checker: ^0.1.0 copied to clipboard

outdated

Checks for an actual internet connection, by opening a socket connection to DNS Resolver addresses.

data_connection_checker #

Checks for an internet (data) connection, by opening a socket connection to DNS Resolver addresses.

Usage #

Example:

import 'package:data_connection_checker/data_connection_checker.dart';

main() async {
  var internetChecker = DataConnectionChecker();
  print("The statement 'this machine is connected to the Internet' is: ");
  print(await internetChecker.hasDataConnection);

  print('---------\nlog from the last check:');
  print(internetChecker.lastTryLog);
}

See example folder for more examples.

License #

MIT

Copyright 2019 Kristiyan Mitev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

426
likes
0
pub points
96%
popularity

Publisher

unverified uploader

Checks for an actual internet connection, by opening a socket connection to DNS Resolver addresses.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

pedantic

More

Packages that depend on data_connection_checker