iface

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var READBUFFERSIZE = 65535
View Source
var TUNCHANBUFFSIZE = 1024

Functions

This section is empty.

Types

type TunServer

type TunServer struct {
	TunConn    *water.Interface
	WinTunConn tun.Device
	//Key: clientProtocol:clientIP:clientPort  Value: chan string
	RouteMap *cache.Cache
	//write to tun
	InputChan chan string
}

func NewTunServer

func NewTunServer(tname string, mtu int) (*TunServer, error)

func (*TunServer) Start

func (ts *TunServer) Start()

func (*TunServer) StartClient

func (ts *TunServer) StartClient(client string, connToTunChan chan string, tunToConnChan chan string, localTunIp string, proto string)

func (*TunServer) Stop

func (ts *TunServer) Stop()

Jump to

Keyboard shortcuts

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