Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChunkRatioInvalid = errors.New("the ratio of chunk to packet size is too high - either use larger packets or a smaller chunk")
Functions ¶
This section is empty.
Types ¶
type FountainBlock ¶
type FountainBlock = fountain.LTBlock
type Packet ¶
type Packet struct { Chunk Chunk Block FountainBlock }
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
func NewReceiver ¶
func NewReceiver() *Receiver
func (*Receiver) PrepareForReception ¶
type Transmitter ¶
type Transmitter struct {
// contains filtered or unexported fields
}
func NewTransmitter ¶
func NewTransmitter() *Transmitter
func (*Transmitter) ActivateChunk ¶
func (tx *Transmitter) ActivateChunk(chunk Chunk) error
func (*Transmitter) DeactivateChunk ¶
func (tx *Transmitter) DeactivateChunk(chunk Chunk)
func (*Transmitter) GeneratePacket ¶
func (tx *Transmitter) GeneratePacket() (packet Packet)
Click to show internal directories.
Click to hide internal directories.