Discover Packages
github.com/vokomarov/netshark
scanner
host
package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Mar 9, 2020
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Host struct host information about discovered network client
ID will generate unique MD5 hash of host by his properties
and cache generated hash for future usage
type Scanner struct {
Error error
}
Scanner provide container for control local network scanning
process and checking results
NewScanner will initialise new instance of Scanner
Ctx wrap given context and return new with cancel func
Hosts will return a read only channel to receive found Host
Scan will detect system interfaces and go over each one to detect
IP addresses to read/write ARP packets
Blocked until every interfaces unable to write packets or stop call
so typically should be run as a goroutine
Source Files
¶
Click to show internal directories.
Click to hide internal directories.