Documentation
¶
Index ¶
Constants ¶
View Source
const AddrFec = 1
View Source
const ChunkHeaderSize = 22
View Source
const KindData = 1
View Source
const PacketV2DataSize = 1024
View Source
const PacketV2HashSize = 8
View Source
const PacketV2HeaderSize = 24
View Source
const PacketV2Size = PacketV2HeaderSize + PacketV2DataSize + PacketV2HashSize
View Source
const PacketV3DataSize = 1024
View Source
const PacketV3HashSize = 8
View Source
const PacketV3HeaderSize = 24
View Source
const PacketV3Size = PacketV3HeaderSize + PacketV3DataSize + PacketV3HashSize
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct {
// contains filtered or unexported fields
}
func (*Chunk) Len ¶
Len returns length of the chunk in bytes. It'll be multiples of PacketV2DataSize
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 ¶
type PacketV2 ¶
type PacketV2 struct {
// contains filtered or unexported fields
}
func NewPacketV2 ¶
type PacketV3 ¶
type PacketV3 struct {
// contains filtered or unexported fields
}
func NewPacketV3 ¶
Click to show internal directories.
Click to hide internal directories.