Skip to content
šŸ“¶ Library to check your Internet connectivity
Branch: master
Clone or download
Fetching latest commitā€¦
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
tests Simpler example May 23, 2019
.gitignore Hi world! :D May 18, 2019
.travis.yml Travis setup working May 19, 2019
CHANGELOG.md Dependencies update Jun 5, 2019
Cargo.toml Dependencies update Jun 5, 2019
LICENSE.txt Hi world! :D May 18, 2019
README.md Fix #7 Jun 5, 2019
rustfmt.toml

README.md

online

šŸ“¶ Library to check your Internet connectivity

Logo

Build Status Latest version Stability stable

šŸ¤™ Ping me on Twitter if you like this project

It uses TCP to try to connect to Chrome and Firefox (fallback) captive portal detection servers.

Use

šŸ“ Please visit the full documentation if you want to learn the details.

use std::time::Duration;

use online::*;

assert_eq!(online(None), Ok(true));

// with timeout
let timeout = Duration::new(6, 0);
assert_eq!(online(Some(timeout)), Ok(true));

Contributing

šŸ˜Ž If you want to help please take a look to this file.

You canā€™t perform that action at this time.