drop

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DropConn

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

func NewDrop

func NewDrop(ctx context.Context, timeout time.Duration) *DropConn

func (*DropConn) Close

func (d *DropConn) Close() error

func (*DropConn) LocalAddr

func (d *DropConn) LocalAddr() net.Addr

func (*DropConn) Read

func (d *DropConn) Read(b []byte) (n int, err error)

func (*DropConn) ReadFrom

func (d *DropConn) ReadFrom(b []byte) (n int, addr net.Addr, err error)

func (*DropConn) RemoteAddr

func (d *DropConn) RemoteAddr() net.Addr

func (*DropConn) SetDeadline

func (d *DropConn) SetDeadline(t time.Time) error

func (*DropConn) SetReadDeadline

func (d *DropConn) SetReadDeadline(t time.Time) error

func (*DropConn) SetWriteDeadline

func (d *DropConn) SetWriteDeadline(t time.Time) error

func (*DropConn) Write

func (d *DropConn) Write(b []byte) (n int, err error)

func (*DropConn) WriteTo

func (d *DropConn) WriteTo(b []byte, addr net.Addr) (n int, err error)

Jump to

Keyboard shortcuts

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