wrapper

package
v0.0.0-...-632c06c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShorterThanExpected = 3
	Exact               = 1
	LongerThanExpected  = 2
)

Variables

This section is empty.

Functions

func ReceivePacketOverReader

func ReceivePacketOverReader(lengthMask int64, reader io.Reader, sendingChan chan []byte, ctx context.Context)

func SendPacketOverWriter

func SendPacketOverWriter(lengthMask int64, writer io.Writer, receivingChan chan []byte, networkBuffering int, ctx context.Context)

func TestBufferSizePayload

func TestBufferSizePayload(sendingSize int, lenmaskSource *rand.Rand, writer io.Writer)

func TestBufferSizePayloadClient

func TestBufferSizePayloadClient(sendingSize int, reader io.Reader, reqtime time.Time) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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