net

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CR   = byte('\r')
	LF   = byte('\n')
	CRLF = string([]byte{CR, LF})
)

Functions

func DropCR

func DropCR(data []byte) []byte

func ScanCRLF

func ScanCRLF(data []byte, atEOF bool) (advance int, token []byte, err error)

Types

type Conn

type Conn struct {
	TcpConn net.Conn

	Max int
	// contains filtered or unexported fields
}

func (*Conn) Read

func (c *Conn) Read() ([]byte, error)

func (*Conn) Write

func (c *Conn) Write(s string) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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