Documentation ¶
Index ¶
Constants ¶
View Source
const AddrFec = 1
View Source
const ChunkHeaderSize = 22
View Source
const KindData = 1
View Source
const PacketDataSize = 1024
View Source
const PacketHashSize = 8
View Source
const PacketHeaderSize = 24
View Source
const PacketSize = PacketHeaderSize + PacketDataSize + PacketHashSize
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct {
// contains filtered or unexported fields
}
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) IncomingSize ¶
func (*Decoder) OutgoingSize ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) IncomingSize ¶
func (*Encoder) OutgoingSize ¶
Click to show internal directories.
Click to hide internal directories.