mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-03-31 10:47:35 +03:00
* check for WSAEMSGSIZE errors when receiving UDP packets on Windows * check EMSGSIZE error on macOS
22 lines
393 B
Go
22 lines
393 B
Go
//go:build !linux && !windows && !darwin
|
|
|
|
package quic
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func setDF(syscall.RawConn) (bool, error) {
|
|
// no-op on unsupported platforms
|
|
return false, nil
|
|
}
|
|
|
|
func isSendMsgSizeErr(err error) bool {
|
|
// to be implemented for more specific platforms
|
|
return false
|
|
}
|
|
|
|
func isRecvMsgSizeErr(err error) bool {
|
|
// to be implemented for more specific platforms
|
|
return false
|
|
}
|