restore Windows compatibility (#860) (#861)

This commit is contained in:
Alessandro Ros
2025-08-12 12:45:06 +02:00
committed by GitHub
parent 78a8f619f7
commit cf1e074137
8 changed files with 113 additions and 38 deletions

View File

@@ -0,0 +1,13 @@
// Package readbuffer contains a function to get the read buffer size of a socket.
package readbuffer
import (
"net"
"syscall"
)
// PacketConn is a packet connection.
type PacketConn interface {
net.PacketConn
SyscallConn() (syscall.RawConn, error)
}