splice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EAGAIN will be returned when resource temporarily unavailable.
	EAGAIN = syscall.EAGAIN
)

Variables

View Source
var (

	// EOF is the error returned by Read when no more input is available.
	// Functions should return EOF only to signal a graceful end of input.
	// If the EOF occurs unexpectedly in a structured data stream,
	// the appropriate error is either ErrUnexpectedEOF or some other error
	// giving more detail.
	EOF = io.EOF

	// ErrNotHandled will be returned when the splice is not supported.
	ErrNotHandled = errors.New("The splice is not supported")
)
View Source
var ErrSyscallConn = errors.New("The net.Conn do not implements the syscall.Conn interface")

ErrSyscallConn will be returned when the net.Conn do not implements the syscall.Conn interface.

Functions

func MaxIdleContextsPerBucket

func MaxIdleContextsPerBucket(max int)

MaxIdleContextsPerBucket sets the maxIdleContexts per bucket.

func Splice

func Splice(dst, src net.Conn, len int64) (n int64, err error)

Splice wraps the splice system call.

splice() moves data between two file descriptors without copying between kernel address space and user address space. It transfers up to len bytes of data from the file descriptor rfd to the file descriptor wfd, where one of the descriptors must refer to a pipe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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