conn

package
v0.0.0-...-dd0483f Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDecoderClosed = zstd.ErrDecoderClosed
	ErrUnexpectedEOF = io.ErrUnexpectedEOF
)

Functions

func SetReadWriteBuff

func SetReadWriteBuff(ctx context.Context, rwc io.ReadWriteCloser, read, write int) (err error)

SetReadWriteBuff 设置 conn 读写缓存的大小

Types

type QuicConn

type QuicConn struct {
	quic.Connection
	quic.Stream
}

func WrapQuic

func WrapQuic(ctx context.Context, c quic.Connection) (qc *QuicConn, err error)

func WrapQuicClient

func WrapQuicClient(ctx context.Context, c quic.Connection) (qc *QuicConn, err error)

type Zip

type Zip struct {
	// contains filtered or unexported fields
}

func NewZip

func NewZip(ctx context.Context, rwc io.ReadWriteCloser) (c *Zip, err error)

func (*Zip) Close

func (c *Zip) Close() (err error)

func (*Zip) Read

func (c *Zip) Read(data []byte) (n int, err error)

func (*Zip) Write

func (c *Zip) Write(data []byte) (n int, err error)

func (*Zip) WriteMul

func (c *Zip) WriteMul(datas [][]byte) (n int, err error)

Jump to

Keyboard shortcuts

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