Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkScanner ¶
NetworkScanner traverses IP networks looking for Devices.
func NewNetworkScanner ¶
func NewNetworkScanner() (*NetworkScanner, error)
NewNetworkScanner creates a new NetworkScanner.
func (*NetworkScanner) Active ¶
func (s *NetworkScanner) Active() bool
Active returns the value of the Scanner's active flag.
func (*NetworkScanner) ScanCnt ¶
func (s *NetworkScanner) ScanCnt() int
ScanCnt returns the number of Networks currently being scanned.
func (*NetworkScanner) ScanProgress ¶
func (s *NetworkScanner) ScanProgress(nid int64) (uint64, uint64, bool)
ScanProgress returns the progress of scanning the given Network. In particular, it returns: - the number of IP addresses scanned so far - the number Devices added so far - whether or not the given Network is currently being scanned. If the given Network is not currently being scanned, the first two numbers will be 0, obviously.
Click to show internal directories.
Click to hide internal directories.