File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1169,17 +1169,22 @@ abstract interface class RawDatagramSocket extends Stream<RawSocketEvent> {
1169
1169
/// added to the [Stream] . If a networking or remote failure occurs then it
1170
1170
/// will not be reported.
1171
1171
///
1172
- /// The maximum size of a UDP datagram is 65535 bytes (including both data
1173
- /// and headers) but the practical maximum size is likely to be much lower
1174
- /// due to operating system limits and the network's maximum transmission
1175
- /// unit (MTU).
1172
+ /// The maximum size of a IPv4 UDP datagram is 65535 bytes (including both
1173
+ /// data and headers) but the practical maximum size is likely to be much
1174
+ /// lower due to operating system limits and the network's maximum
1175
+ /// transmission unit (MTU).
1176
+ ///
1177
+ /// Some IPv6 implementations may support payloads up to 4GB (see RFC-2675)
1178
+ /// but that support is limited (see RFC-6434) and has been removed in later
1179
+ /// standards (see RFC-8504).
1180
+ ///
1181
+ /// [Emperical testing by the Chromium team] (https://groups.google.com/a/chromium.org/g/proto-quic/c/uKWLRh9JPCo)
1182
+ /// suggests that payloads later than 1350 cannot be reliably received.
1176
1183
int send (List <int > buffer, InternetAddress address, int port);
1177
1184
1178
1185
/// Receives a datagram.
1179
1186
///
1180
1187
/// Returns `null` if there are no datagrams available.
1181
- ///
1182
- /// The maximum length of the datagram that can be received is 65503 bytes.
1183
1188
Datagram ? receive ();
1184
1189
1185
1190
/// Joins a multicast group.
You can’t perform that action at this time.
0 commit comments