Documentation
¶
Index ¶
- type FreedomHandler
- func (c *FreedomHandler) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
- func (c *FreedomHandler) HandlePacketConn(ctx context.Context, dst net.Destination, rw udp.PacketReaderWriter) error
- func (c *FreedomHandler) OpenICMP(ctx context.Context, dst net.Destination) (net.PacketConn, error)
- func (c *FreedomHandler) SupportsICMP() bool
- func (c *FreedomHandler) Tag() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreedomHandler ¶
type FreedomHandler struct {
Dialer i.Dialer
PacketListener i.PacketListener
Dns i.IPResolver
// contains filtered or unexported fields
}
func New ¶
func New(dialer i.Dialer, pl i.PacketListener, tag string, dns i.IPResolver) *FreedomHandler
func (*FreedomHandler) HandleFlow ¶
func (c *FreedomHandler) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
func (*FreedomHandler) HandlePacketConn ¶
func (c *FreedomHandler) HandlePacketConn(ctx context.Context, dst net.Destination, rw udp.PacketReaderWriter) error
func (*FreedomHandler) OpenICMP ¶ added in v1.6.0
func (c *FreedomHandler) OpenICMP(ctx context.Context, dst net.Destination) (net.PacketConn, error)
func (*FreedomHandler) SupportsICMP ¶ added in v1.6.0
func (c *FreedomHandler) SupportsICMP() bool
func (*FreedomHandler) Tag ¶
func (c *FreedomHandler) Tag() string
Click to show internal directories.
Click to hide internal directories.