github.com/database64128/shadowsocks-go@v1.10.2-0.20240315062903-143a773533f1/conn/conn_no_flags_tclass.go (about)

     1  //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos
     2  
     3  package conn
     4  
     5  // ParseFlagsForError parses the message flags returned by
     6  // the ReadMsgUDPAddrPort method and returns an error if MSG_TRUNC
     7  // is set, indicating that the returned packet was truncated.
     8  //
     9  // The check is skipped on Windows, because an error (WSAEMSGSIZE)
    10  // is also returned when MSG_PARTIAL is set.
    11  func ParseFlagsForError(flags int) error {
    12  	return nil
    13  }