bindtest

package
v0.0.20230301 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelBinds

func NewChannelBinds() [2]conn.Bind

Types

type ChannelBind

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

func (*ChannelBind) BatchSize

func (c *ChannelBind) BatchSize() int

func (*ChannelBind) Close

func (c *ChannelBind) Close() error

func (*ChannelBind) Open

func (c *ChannelBind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)

func (*ChannelBind) ParseEndpoint

func (c *ChannelBind) ParseEndpoint(s string) (conn.Endpoint, error)

func (*ChannelBind) Send

func (c *ChannelBind) Send(bufs [][]byte, ep conn.Endpoint) error

func (*ChannelBind) SetMark

func (c *ChannelBind) SetMark(mark uint32) error

type ChannelEndpoint

type ChannelEndpoint uint16

func (ChannelEndpoint) ClearSrc

func (c ChannelEndpoint) ClearSrc()

func (ChannelEndpoint) DstIP

func (c ChannelEndpoint) DstIP() netip.Addr

func (ChannelEndpoint) DstToBytes

func (c ChannelEndpoint) DstToBytes() []byte

func (ChannelEndpoint) DstToString

func (c ChannelEndpoint) DstToString() string

func (ChannelEndpoint) SrcIP

func (c ChannelEndpoint) SrcIP() netip.Addr

func (ChannelEndpoint) SrcToString

func (c ChannelEndpoint) SrcToString() string

Jump to

Keyboard shortcuts

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