bindtest

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 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) 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(b []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() net.IP

func (ChannelEndpoint) DstToBytes

func (c ChannelEndpoint) DstToBytes() []byte

func (ChannelEndpoint) DstToString

func (c ChannelEndpoint) DstToString() string

func (ChannelEndpoint) SrcIP

func (c ChannelEndpoint) SrcIP() net.IP

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