tun

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader added in v0.4.0

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

func NewReader added in v0.4.0

func NewReader(tunif *T) *Reader

func (*Reader) Recv added in v0.4.0

func (t *Reader) Recv() []byte

type T

type T struct {
	*water.Interface
	NetIf *net.Interface
}

T is the type of a tun device.

func New

func New() (s *T, err error)

New() creates a new tun device.

type Writer added in v0.4.0

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

func NewWriter added in v0.4.0

func NewWriter(tunif *T) *Writer

func (*Writer) Send added in v0.4.0

func (t *Writer) Send(data []byte)

Jump to

Keyboard shortcuts

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