tcp

package
v0.0.0-...-a6b45c3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: EUPL-1.2 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discard

func Discard(stream Stream)

func Unmarshall

func Unmarshall(s Stream, v any) (time.Time, error)

func UnmarshallPeek

func UnmarshallPeek(s PeekStream, v any) (time.Time, error)

Types

type PeekStream

type PeekStream interface {
	Peek(p []byte) (n int, f time.Time, t time.Time, err error)
	Length() int
}

type Stream

type Stream interface {
	tcpassembly.Stream
	PeekStream
	Notifier(notifier func())
	Read(p []byte) (n int, f time.Time, t time.Time, err error)
	Consume(n int) (err error)
	Clear()
}

func NewStream

func NewStream() Stream

Jump to

Keyboard shortcuts

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