tcpserver

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 21 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptData

func DecryptData(binaryTx *[]byte) ([]byte, []byte, []byte, error)

DecryptData is decrypting data

func HandleTCPRequest

func HandleTCPRequest(rw net.Conn)

HandleTCPRequest proceed TCP requests

func TcpListener

func TcpListener(laddr string) error

TcpListener is listening tcp address

func Type1

func Type1(rw io.ReadWriter) error

Type1 get the list of transactions which belong to the sender from 'disseminator' daemon do not load the blocks here because here could be the chain of blocks that are loaded for a long time download the transactions here, because they are small and definitely will be downloaded in 60 sec

func Type10

func Type10() (*network.MaxBlockResponse, error)

Type10 sends the last block ID blocksCollection daemon sends this request

func Type2

func Type2(rw io.ReadWriter) (*network.DisTrResponse, error)

Type2 serves requests from disseminator

func Type3

func Type3(req *network.StopNetworkRequest, w net.Conn) error

Type3

func Type4

Type4 writes the hash of the specified block The request is sent by 'confirmations' daemon

func Type7

func Type7(request *network.GetBodiesRequest, w net.Conn) error

Type7 writes the body of the specified block blocksCollection and queue_parser_blocks daemons send the request through p.GetBlocks()

Types

This section is empty.

Jump to

Keyboard shortcuts

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