Use registered io on Windows when possible (#905)

This commit is contained in:
Nate Brown
2023-07-10 12:43:48 -05:00
committed by GitHub
parent 8ba5d64dbc
commit a3e59a38ef
13 changed files with 472 additions and 8 deletions

View File

@@ -26,6 +26,7 @@ type Conn interface {
ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, q int)
WriteTo(b []byte, addr *Addr) error
ReloadConfig(c *config.C)
Close() error
}
type NoopConn struct{}
@@ -45,3 +46,6 @@ func (NoopConn) WriteTo(_ []byte, _ *Addr) error {
func (NoopConn) ReloadConfig(_ *config.C) {
return
}
func (NoopConn) Close() error {
return nil
}