Discover Packages
github.com/dusk-network/dusk-blockchain
pkg
p2p
peer
processing
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 24, 2019
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
¶
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 the protocol
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)
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.