buffconn

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuffConn

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

BuffConn is a net.Conn that implements read buffering to save on syscalls.

func New

func New(wire net.Conn) *BuffConn

New creates a new BuffConn.

func (*BuffConn) Close

func (bc *BuffConn) Close() error

func (*BuffConn) LocalAddr

func (bc *BuffConn) LocalAddr() net.Addr

func (*BuffConn) Read

func (bc *BuffConn) Read(p []byte) (int, error)

func (*BuffConn) RemoteAddr

func (bc *BuffConn) RemoteAddr() net.Addr

func (*BuffConn) SetDeadline

func (bc *BuffConn) SetDeadline(t time.Time) error

func (*BuffConn) SetReadDeadline

func (bc *BuffConn) SetReadDeadline(t time.Time) error

func (*BuffConn) SetWriteDeadline

func (bc *BuffConn) SetWriteDeadline(t time.Time) error

func (*BuffConn) Write

func (bc *BuffConn) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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