Documentation ¶
Index ¶
- func NewChannelBinds() [2]conn.Bind
- type ChannelBind
- func (c *ChannelBind) Close() error
- func (c *ChannelBind) Open(port uint16) (actualPort uint16, err error)
- func (c *ChannelBind) ParseEndpoint(s string) (conn.Endpoint, error)
- func (c *ChannelBind) ReceiveIPv4(b []byte) (n int, ep conn.Endpoint, err error)
- func (c *ChannelBind) ReceiveIPv6(b []byte) (n int, ep conn.Endpoint, err error)
- func (c *ChannelBind) Send(b []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) Close ¶
func (c *ChannelBind) Close() error
func (*ChannelBind) ParseEndpoint ¶
func (c *ChannelBind) ParseEndpoint(s string) (conn.Endpoint, error)
func (*ChannelBind) ReceiveIPv4 ¶
func (*ChannelBind) ReceiveIPv6 ¶
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
Click to show internal directories.
Click to hide internal directories.