netpoll

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer() network.Dialer

func NewTransporter

func NewTransporter(options *config.Options) network.Transporter

For transporter switch

Types

type Conn

type Conn struct {
	network.Conn
}

func (*Conn) Flush

func (c *Conn) Flush() error

func (*Conn) HandleSpecificError added in v0.1.0

func (c *Conn) HandleSpecificError(err error, rip string) (needIgnore bool)

func (*Conn) Len

func (c *Conn) Len() int

func (*Conn) Malloc

func (c *Conn) Malloc(n int) (buf []byte, err error)

func (*Conn) Peek

func (c *Conn) Peek(n int) (b []byte, err error)

func (*Conn) ReadBinary

func (c *Conn) ReadBinary(n int) (b []byte, err error)

func (*Conn) ReadByte

func (c *Conn) ReadByte() (b byte, err error)

func (*Conn) Release

func (c *Conn) Release() error

func (*Conn) Skip

func (c *Conn) Skip(n int) error

func (*Conn) WriteBinary

func (c *Conn) WriteBinary(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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