p2p

package
Version: v0.0.0-...-fa99088 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StopSrv = make(chan struct{})
	StopCli = make(chan struct{})

	Peer *peer
)

Functions

func AddHandler

func AddHandler(name string, f FuncHandler)

func Connect

func Connect(host, port string) string

func OpenPort

func OpenPort(host, port string) string

Types

type FuncHandler

type FuncHandler func([]byte, *tcpnetwork.Connection)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL