noise: github.com/perlin-network/noise/transport Index | Files

package transport

import "github.com/perlin-network/noise/transport"

Index

Package Files

buffered.go mod.go tcp.go

func NewTCP Uses

func NewTCP() tcp

NewTCP returns a new tcp instance

type Buffered Uses

type Buffered struct {
    sync.Mutex
    // contains filtered or unexported fields
}

func NewBuffered Uses

func NewBuffered() *Buffered

NewVirtualTCP returns a new virtualTCP instance

func (*Buffered) Dial Uses

func (t *Buffered) Dial(address string) (net.Conn, error)

func (*Buffered) IP Uses

func (t *Buffered) IP(address net.Addr) net.IP

func (*Buffered) Listen Uses

func (t *Buffered) Listen(host string, port uint16) (net.Listener, error)

func (*Buffered) Port Uses

func (t *Buffered) Port(address net.Addr) uint16

func (*Buffered) String Uses

func (t *Buffered) String() string

type Layer Uses

type Layer interface {
    fmt.Stringer

    Listen(host string, port uint16) (net.Listener, error)
    Dial(address string) (net.Conn, error)

    IP(address net.Addr) net.IP
    Port(address net.Addr) uint16
}

Package transport imports 9 packages (graph) and is imported by 1 packages. Updated 2019-02-25. Refresh now. Tools for package owners.