device

package
v0.0.0-...-f3a3a28 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 1 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 interface {
	stack.LinkEndpoint

	// Close stops and closes the device.
	Close() error

	// Name returns the current name of the device.
	Name() string
}

Device is the interface that implemented by network layer devices (e.g. tun), and easy to use as stack.LinkEndpoint.

Directories

Path Synopsis
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.

Jump to

Keyboard shortcuts

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