tun

package
v0.0.0-...-ca67efc Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: GPL-2.0, GPL-3.0, LGPL-3.0 Imports: 2 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

	*water.Interface
	// contains filtered or unexported fields
}

func NewDevice

func NewDevice(n string) (*Device, error)

func (*Device) Close

func (d *Device) Close() error

func (*Device) Read

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

func (*Device) ReadFrom

func (d *Device) ReadFrom(r io.Reader) (n int64, err error)

func (*Device) Write

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

func (*Device) WriteTo

func (d *Device) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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