Discover Packages
github.com/dusk-network/dusk-blockchain
pkg
p2p
peer
processing
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Apr 27, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ReadFrame extract the bytes representing the size of the packet and thus
read the amount of bytes specified by such prefix in little endianness
WriteFrame mutates a buffer by adding a length-prefixing wire message frame at the beginning of the message
Gossip is a preprocessor for gossip messages.
NewGossip returns a gossip preprocessor with the specified magic.
Process a message that is passing through, by prepending
magic and the message checksum, and finally by prepending the length.
UnpackLength unwraps the incoming packet (likely from a net.Conn struct) and returns the length of the packet without reading the payload (which is left to the user of this method)
Ponger responds to a Ping on a channel
NewPonger instantiates a new Ponger with a new channel
Pong pushes a pong buffer to a channel
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.