network

package
v0.0.0-...-dc266c9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(byt []byte) string

func SendData

func SendData(conn net.Conn, msg []byte) error

func StartClient

func StartClient()

func StartServer

func StartServer(localaddr string, knownodes []string)

func String2Bytes

func String2Bytes(str string) []byte

Types

type MSGgetblocks

type MSGgetblocks struct {
	FromAddress string
}

type MSGversion

type MSGversion struct {
	Version     byte
	NowHeight   uint32
	FromAddress string
}

Jump to

Keyboard shortcuts

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