You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/netmon
Brad Fitzpatrick e881c1caec net/netmon: factor out debounce loop, simplify polling impl
This simplifies some netmon code in prep for other changes.

It breaks up Monitor.debounce into a helper method so locking is
easier to read and things unindent, and then it simplifies the polling
netmon implementation to remove the redundant stuff that the caller
(the Monitor.debounce loop) was already basically doing.

Updates #9040

Change-Id: Idcfb45201d00ae64017042a7bdee6ef86ad37a9f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
10 months ago
..
netmon.go net/netmon: factor out debounce loop, simplify polling impl 10 months ago
netmon_darwin.go all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
netmon_darwin_test.go all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
netmon_freebsd.go all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
netmon_linux.go all: adjust case of "IPv4" and "IPv6" 1 year ago
netmon_linux_test.go all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
netmon_polling.go all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
netmon_test.go net/netmon: make ChangeFunc's signature take new ChangeDelta, not bool 10 months ago
netmon_windows.go all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
polling.go net/netmon: factor out debounce loop, simplify polling impl 10 months ago