Documentation ¶
Overview ¶
Package smbsequencer provides an smbserver.Sequencer implementation that relies on a non-allocating circular bitmask.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sequencer ¶
type Sequencer struct {
// contains filtered or unexported fields
}
Sequencer keeps track of message sequence numbers for a connection. It must be created by calling New.
func New ¶
New returns a new sequencer without any credits. The maximum number of credits allowed will be constrained by limit.
func (*Sequencer) Consume ¶
Consume removes the given sequence number from the list of outstanding sequence numbers.
If the sequence number has already been consumed or is not outstanding it returns false.
Click to show internal directories.
Click to hide internal directories.