tun
package v0.0.20181001
Go to latest Published: Oct 1, 2018 License:GPL-2.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:11 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Valid go.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
View Source
const (TUNEventUp = 1 <<iotaTUNEventDownTUNEventMTUUpdate)
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeTUNDevice¶
type TUNDevice interface {File() *os.File// returns the file descriptor of the deviceRead([]byte,int) (int,error)// read a packet from the device (without any additional headers)Write([]byte,int) (int,error)// writes a packet to the device (without any additional headers)MTU() (int,error)// returns the MTU of the deviceName() (string,error)// fetches and returns the current nameEvents() chanTUNEvent// returns a constant channel of events related to the deviceClose()error// stops the device and closes the event channel} Click to show internal directories.
Click to hide internal directories.