tun

package
v0.0.0-...-a2a8331 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WriteErr = errors.New("fail to write tun")
)

Functions

This section is empty.

Types

type Tun

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

func NewTun

func NewTun(name string, cache []byte) (*Tun, error)

func (*Tun) Close

func (t *Tun) Close()

func (*Tun) GetStats

func (t *Tun) GetStats() util.Stats

func (*Tun) Read

func (t *Tun) Read() ([]byte, error)

func (*Tun) String

func (t *Tun) String() string

func (*Tun) Write

func (t *Tun) Write(data []byte) error

Jump to

Keyboard shortcuts

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