tun

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name    string
	IP      string
	PConn   net.PacketConn
	DstAddr net.Addr
	// contains filtered or unexported fields
}

func (*Device) Close

func (d *Device) Close() error

func (*Device) Read

func (d *Device) Read(b []byte) (int, error)

func (*Device) Up

func (d *Device) Up() error

func (*Device) Write

func (d *Device) Write(b []byte) (int, error)

type Proxy

type Proxy struct {
	Device  *Device
	PConn   net.PacketConn
	DstAddr net.Addr
	// contains filtered or unexported fields
}

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) Start

func (p *Proxy) Start()

Jump to

Keyboard shortcuts

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