tunnel

package
v0.0.0-...-ef8680d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecycler

func NewRecycler(size uint32) *recycler

Types

type Cipher

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

func NewCipher

func NewCipher(cryptoMethod string, secret []byte) *Cipher

type Conn

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

func NewConn

func NewConn(conn net.Conn, cipher *Cipher, pool *recycler) *Conn

func (*Conn) Close

func (c *Conn) Close()

func (*Conn) CloseRead

func (c *Conn) CloseRead()

func (*Conn) CloseWrite

func (c *Conn) CloseWrite()

func (*Conn) Read

func (c *Conn) Read(b []byte) (int, error)

func (*Conn) Write

func (c *Conn) Write(b []byte) (int, error)

type Tunnel

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

func NewTunnel

func NewTunnel(faddr, baddr string, clientMode bool, cryptoMethod, secret string, size uint32) *Tunnel

func (*Tunnel) Start

func (t *Tunnel) Start()

Jump to

Keyboard shortcuts

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