udptun

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUDPTunServer

func NewUDPTunServer(s string, p proxy.Proxy) (proxy.Server, error)

NewUDPTunServer returns a udp tunnel server.

Types

type UDPTun

type UDPTun struct {
	// contains filtered or unexported fields
}

UDPTun is a base udptun struct.

func NewUDPTun

func NewUDPTun(s string, p proxy.Proxy) (*UDPTun, error)

NewUDPTun returns a UDPTun proxy.

func (*UDPTun) ListenAndServe

func (s *UDPTun) ListenAndServe()

ListenAndServe listen and serves on the given address.

func (*UDPTun) Serve added in v0.6.9

func (s *UDPTun) Serve(c net.Conn)

Serve serves a net.Conn, can not be called directly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL