qtun

package
v0.0.0-...-8c1276b Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(config config.Config) *App

func (*App) FetchAndProcessTunPkt

func (a *App) FetchAndProcessTunPkt() error

func (*App) InitClient

func (a *App) InitClient() error

func (*App) OnData

func (a *App) OnData(buf []byte, conn *net.TCPConn)

func (*App) Run

func (a *App) Run() error

func (*App) StartFetchTunInterface

func (a *App) StartFetchTunInterface() error

type Peer

type Peer struct {
	// contains filtered or unexported fields
}

func NewPeer

func NewPeer(cfg config.Config, handler transport.ServerHandler) *Peer

func (*Peer) GetTunLocalAddrWithPort

func (p *Peer) GetTunLocalAddrWithPort() string

func (*Peer) SendPacket

func (p *Peer) SendPacket(pkt iface.PacketIP)

func (*Peer) SendPing

func (p *Peer) SendPing()

func (*Peer) Start

func (p *Peer) Start()

type Route

type Route struct {
	IP        string
	LocalAddr string
}

Jump to

Keyboard shortcuts

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