tun

package
v0.0.0-...-d0f1447 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TunConfig

type TunConfig struct {
	DevType water.DeviceType
	Address string
	Name    string
	MTU     string
}

type TunInterface

type TunInterface struct {
	icommon.TunnelInterfaceServer
	icommon.TunnelInterfaceClient
	// contains filtered or unexported fields
}

func GetTunIface

func GetTunIface(config TunConfig) TunInterface

func (TunInterface) Close

func (t TunInterface) Close() error

func (TunInterface) HandleConnection

func (t TunInterface) HandleConnection(conn net.Conn) error

func (TunInterface) WaitingForConnection

func (t TunInterface) WaitingForConnection()

type TunInterfaceClient

type TunInterfaceClient struct {
	TunInterface
	// contains filtered or unexported fields
}

func GetTunIfaceClient

func GetTunIfaceClient(config TunConfig, addr string, d tcommon.TunnelDialer) TunInterfaceClient

func (*TunInterfaceClient) Close

func (t *TunInterfaceClient) Close()

func (TunInterfaceClient) Closed

func (t TunInterfaceClient) Closed() bool

func (*TunInterfaceClient) WaitingForConnection

func (t *TunInterfaceClient) WaitingForConnection()

Jump to

Keyboard shortcuts

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