netpoll

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 6

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) Read added in v0.5.0

func (c *Conn) Read(p []byte) (int, 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) ToHertzError added in v0.5.0

func (c *Conn) ToHertzError(err error) 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