p2p

package
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: 1

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
y or Y : Canonical URL