Movatterモバイル変換


[0]ホーム

URL:


tun

package
v0.0.20181001Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License:GPL-2.0Imports:11Imported by:0

Details

Repository

github.com/tailscale/wireguard-go

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}

funcCreateTUN

func CreateTUN(namestring, mtuint) (TUNDevice,error)

funcCreateTUNFromFile

func CreateTUNFromFile(file *os.File, mtuint) (TUNDevice,error)

typeTUNEvent

type TUNEventint

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp