peek

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	Reader *bufio.Reader
}

func WrapPeekConn

func WrapPeekConn(conn net.Conn) *Conn

func (*Conn) Peek

func (pc *Conn) Peek(n int) ([]byte, error)

func (*Conn) Read

func (pc *Conn) Read(b []byte) (int, error)

func (*Conn) Write

func (pc *Conn) Write(b []byte) (int, error)

Other methods to satisfy the net.Conn interface

Jump to

Keyboard shortcuts

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