history

package
v0.0.0-...-9caea57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package history implements a history vector keep track of received Hellos

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloHistory

type HelloHistory struct {
	// contains filtered or unexported fields
}

func (*HelloHistory) Empty

func (h *HelloHistory) Empty() bool

func (*HelloHistory) Missed

func (h *HelloHistory) Missed() (reset bool)

func (*HelloHistory) OutOf

func (h *HelloHistory) OutOf(k, j int) bool

A.2.1. k-out-of-j See: https://datatracker.ietf.org/doc/html/rfc8966#section-a.2.1

func (*HelloHistory) Reset

func (h *HelloHistory) Reset()

Reset resets the history vector

func (*HelloHistory) Update

func (h *HelloHistory) Update(seqno proto.SequenceNumber) (reset bool)

A.1. Maintaining Hello History See: https://datatracker.ietf.org/doc/html/rfc8966#section-a.1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL