Documentation ¶
Index ¶
- func NewChannelBinds() [2]conn.Bind
- type ChannelBind
- func (c *ChannelBind) BatchSize() int
- func (c *ChannelBind) Close() error
- func (c *ChannelBind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)
- func (c *ChannelBind) ParseEndpoint(s string) (conn.Endpoint, error)
- func (c *ChannelBind) Send(bufs [][]byte, ep conn.Endpoint) error
- func (c *ChannelBind) SetMark(mark uint32) error
- type ChannelEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannelBinds ¶
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) 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
Click to show internal directories.
Click to hide internal directories.