introduce a UsesStopWaitingFrames() method for version numbers

This commit is contained in:
Marten Seemann
2018-03-02 16:00:11 +07:00
parent a1c9e706b0
commit 656dff6163
4 changed files with 15 additions and 5 deletions

View File

@@ -77,6 +77,11 @@ func (vn VersionNumber) UsesIETFFrameFormat() bool {
return vn != Version39
}
// UsesStopWaitingFrames tells if this version uses STOP_WAITING frames
func (vn VersionNumber) UsesStopWaitingFrames() bool {
return vn == Version39
}
// StreamContributesToConnectionFlowControl says if a stream contributes to connection-level flow control
func (vn VersionNumber) StreamContributesToConnectionFlowControl(id StreamID) bool {
if id == vn.CryptoStreamID() {