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
Click to show internal directories.
Click to hide internal directories.