github.com/sagernet/quic-go@v0.43.1-beta.1/ech/sys_conn_no_oob.go (about) 1 //go:build !darwin && !linux && !freebsd && !windows 2 3 package quic 4 5 import ( 6 "net" 7 "net/netip" 8 ) 9 10 func newConn(c net.PacketConn, supportsDF bool) (*basicConn, error) { 11 return &basicConn{PacketConn: c, supportsDF: supportsDF}, nil 12 } 13 14 func inspectReadBuffer(any) (int, error) { return 0, nil } 15 func inspectWriteBuffer(any) (int, error) { return 0, nil } 16 17 type packetInfo struct { 18 addr netip.Addr 19 } 20 21 func (i *packetInfo) OOB() []byte { return nil }