Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mxinden/if-watch
Cross platform asynchronous network watcher
https://github.com/mxinden/if-watch
Last synced: 2 months ago
JSON representation
Cross platform asynchronous network watcher
- Host: GitHub
- URL: https://github.com/mxinden/if-watch
- Owner: mxinden
- Created: 2020-11-11T23:58:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-04T19:53:07.000Z (5 months ago)
- Last Synced: 2024-10-14T12:32:30.114Z (2 months ago)
- Language: Rust
- Size: 123 KB
- Stars: 28
- Watchers: 3
- Forks: 26
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Cross platform asynchronous network watcher
```sh
cargo run --example if_watch
Got event Ok(Up(127.0.0.1/8))
Got event Ok(Up(192.168.6.65/24))
Got event Ok(Up(::1/128))
Got event Ok(Up(2a01:8b81:7000:9700:cef9:e4ff:fe9e:b23b/64))
Got event Ok(Up(fe80::cef9:e4ff:fe9e:b23b/64))
```Supported platforms at the moment are:
Linux, Windows and Android with a fallback for Macos and ios that polls for changes every 10s.## License
MIT OR Apache-2.0