isZeroRttCompatibleAcrossVersions method

bool isZeroRttCompatibleAcrossVersions(
  1. VersionInformation peerInfo
)

Check whether 0-RTT is compatible with the peer's version information.

Returns true if this connection's versionInformation and peerInfo indicate that 0-RTT can be used across versions (RFC 9368).

Implementation

bool isZeroRttCompatibleAcrossVersions(VersionInformation peerInfo) {
  final local = versionInformation;
  if (local == null) return false;
  return local.isZeroRttCompatible(peerInfo);
}