Documentation ¶
Overview ¶
Package rftp implements the RFT-Protocol
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDPConnection ¶
func NewUDPConnection() *udpConnection
Types ¶
type CloseConnectionReason ¶
type CloseConnectionReason uint16
func (CloseConnectionReason) String ¶
func (m CloseConnectionReason) String() string
type FileHandler ¶
type FileHandler func(name string) (*io.SectionReader, error)
type FileResponse ¶
func (*FileResponse) Size ¶
func (f *FileResponse) Size() uint64
type LossSimulator ¶
type LossSimulator interface {
// contains filtered or unexported methods
}
func NewMarkovLossSimulator ¶
func NewMarkovLossSimulator(p float32, q float32) LossSimulator
Return a new loss simulator. p and q between 0 and 1. Caller should consider seeding global randomness source.
type MarkovLossSimulator ¶
type MarkovLossSimulator struct {
// contains filtered or unexported fields
}
type MetaDataStatus ¶
type MetaDataStatus uint8
status, the server puts to metadata
func (MetaDataStatus) String ¶
func (m MetaDataStatus) String() string
type NoopLossSimulator ¶
type NoopLossSimulator struct{}
type RateControl ¶
type RateControl interface {
// contains filtered or unexported methods
}
type Server ¶
type Server struct { Conn connection // contains filtered or unexported fields }
func (*Server) SetFileHandler ¶
func (s *Server) SetFileHandler(fh FileHandler)
Click to show internal directories.
Click to hide internal directories.