streams

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDGenerator

type IDGenerator struct {
	NumStreams int
	// contains filtered or unexported fields
}

IDGenerator tracks and allocates streams which are in use.

func New

func New(protocol int) *IDGenerator

func (*IDGenerator) Available

func (s *IDGenerator) Available() int

func (*IDGenerator) Clear

func (s *IDGenerator) Clear(stream int) (inuse bool)

func (*IDGenerator) GetStream

func (s *IDGenerator) GetStream() (int, bool)

func (*IDGenerator) String

func (s *IDGenerator) String() string

Jump to

Keyboard shortcuts

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