bindtest

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelBind2

func NewChannelBind2() [2]conn.Bind

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 ChannelBind2

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

func (*ChannelBind2) BatchSize

func (c *ChannelBind2) BatchSize() int

func (*ChannelBind2) Close

func (c *ChannelBind2) Close() error

func (*ChannelBind2) Open

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

func (*ChannelBind2) ParseEndpoint

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

func (*ChannelBind2) Send

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

func (*ChannelBind2) SetMark

func (c *ChannelBind2) 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) DstIPPort

func (c ChannelEndpoint) DstIPPort() netip.AddrPort

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

type ChannelEndpoint2

type ChannelEndpoint2 netip.AddrPort

func (ChannelEndpoint2) ClearSrc

func (c ChannelEndpoint2) ClearSrc()

func (ChannelEndpoint2) DstIP

func (c ChannelEndpoint2) DstIP() netip.Addr

func (ChannelEndpoint2) DstIPPort

func (c ChannelEndpoint2) DstIPPort() netip.AddrPort

func (ChannelEndpoint2) DstToBytes

func (c ChannelEndpoint2) DstToBytes() []byte

func (ChannelEndpoint2) DstToString

func (c ChannelEndpoint2) DstToString() string

func (ChannelEndpoint2) SrcIP

func (c ChannelEndpoint2) SrcIP() netip.Addr

func (ChannelEndpoint2) SrcToString

func (c ChannelEndpoint2) SrcToString() string

Jump to

Keyboard shortcuts

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