arp_cache_loader 1.0.1 arp_cache_loader: ^1.0.1 copied to clipboard
Loading tools of arp cache, which make it more convenient to find corresponding mac address by ip address.
arp-cache-loader #
Loading tools of arp cache, which make it more convenient to find corresponding mac address by ip address.
Created from templates made available by Stagehand under a BSD-style license.
Usage #
ArpLoader
provides two methods to load arp cache:
ArpLoader.loadRawArpCache()
loads raw arp cache as string;ArpLoader.loadArpCacheMap()
loads arp cache and parse it to a map with ip address as the key and mac address as the value.
Here is a simple usage example:
import 'package:arp_cache_loader/arp_cache_loader.dart';
void main() async{
// load raw arp cache as string
final String rawArpCache = await ArpLoader.loadRawArpCache();
print('Raw arp cache: $rawArpCache');
// load arp cache as map
final Map<String,String> arpCacheMap = await ArpLoader.loadArpCacheAsMap();
print('Arp cache in map: $arpCacheMap');
}
Platforms #
- windows
- android
- linux
- macos(untested)
Warning #
Issues #
Please submit issues at the issue tracker.