package
Version:
v0.0.0-...-806d497
Opens a new window with list of versions in this module.
Published: Mar 8, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Handshake struct {
Pstr string
InfoHash [20]byte
PeerID [20]byte
}
A Handshake is a special message that a peer uses to identify itself
New creates a new handshake with the standard pstr
Read parses a handshake from a stream
Serialize serializes the handshake to a buffer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.