net

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Relay added in v1.10.6

func Relay(leftConn, rightConn net.Conn)

Relay copies between left and right bidirectionally.

Types

type BufferedConn added in v1.6.5

type BufferedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewBufferedConn added in v1.6.5

func NewBufferedConn(c net.Conn) *BufferedConn

func (*BufferedConn) Buffered added in v1.6.5

func (c *BufferedConn) Buffered() int

func (*BufferedConn) Peek added in v1.6.5

func (c *BufferedConn) Peek(n int) ([]byte, error)

Peek returns the next n bytes without advancing the reader.

func (*BufferedConn) Read added in v1.6.5

func (c *BufferedConn) Read(p []byte) (int, error)

func (*BufferedConn) ReadByte added in v1.6.5

func (c *BufferedConn) ReadByte() (byte, error)

func (*BufferedConn) Reader added in v1.6.5

func (c *BufferedConn) Reader() *bufio.Reader

Reader returns the internal bufio.Reader.

func (*BufferedConn) UnreadByte added in v1.6.5

func (c *BufferedConn) UnreadByte() error

type ReadOnlyReader

type ReadOnlyReader struct {
	io.Reader
}

type WriteOnlyWriter

type WriteOnlyWriter struct {
	io.Writer
}

Jump to

Keyboard shortcuts

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