node

package
v0.0.0-...-3bba05d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentBc block.Blockchain
)

Functions

func HandleStream

func HandleStream(s net.Stream)

HandleStream handles incoming stream from new peers

func Host

func Host(listenPort int, secio bool, randseed int64) (host.Host, error)

Host creates a new basic host

func ReadData

func ReadData(rw *bufio.ReadWriter)

ReadData handles the buffer stream to read peers data

func WriteData

func WriteData(rw *bufio.ReadWriter)

WriteData write into others buffer stream

Types

This section is empty.

Jump to

Keyboard shortcuts

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