Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardPacket ¶
func ForwardPacket(remote Dialer, local net.PacketConn) error
Types ¶
type Endpoint ¶
type Endpoint struct { Network string Address string TLS *tls.Config // Remote Timeout time.Duration }
Endpoint is a network endpoint which can dial to or listen from.
func (*Endpoint) Listen ¶
Listen returns a listener of a local address. Network must be a stream type.
func (*Endpoint) ListenPacket ¶
func (e *Endpoint) ListenPacket() (net.PacketConn, error)
ListenPacket returns a listener of a local address. Network must be a packet oriented type.
type NetForwarder ¶
type NetForwarder struct { Local Endpoint // contains filtered or unexported fields }
func (*NetForwarder) Close ¶
func (f *NetForwarder) Close() error
func (*NetForwarder) Forward ¶
func (f *NetForwarder) Forward(remote Dialer) error
func (*NetForwarder) Listen ¶
func (f *NetForwarder) Listen() error
Click to show internal directories.
Click to hide internal directories.