Versions in this module Expand all Collapse all v0 v0.0.1 Jun 16, 2021 Changes in this version + func CleanupLoggingSettings(logSettings *RistLoggingSettings) + func DisableGlobalLoggingCB() error + func ReceiverDestroy(ctx RistCtx) error + func ReceiverSetNotifyFD(ctx RistCtx, write *os.File) error + func ReceiverStart(ctx RistCtx) error + func SetGlobalLoggingCB(cb LogCallbackFunc) error + func SetStatsCallback(ctx RistCtx, statsInterval int, cbFunc StatsCallbackFunc) (unsafe.Pointer, error) + func StatsCallbackUnrefPtr(ptr unsafe.Pointer) + type LogCallbackFunc func(loglevel RistLogLevel, logmessage string) + type Peer interface + Destroy func() error + func CreatePeer(ctx RistCtx, config PeerConfig) (Peer, error) + type PeerConfig struct + Address string + CName string + Interface string + Psk string + PskKeySize int + RecoveryBuffer uint32 + type ReceiverFlowStats struct + Bandwidth uint + CName string + CurrentInterPacketArrival uint64 + FlowID uint32 + LostPackets uint32 + MaximumInterPacketArrival uint64 + MinimalInterPacketArrival uint64 + MissingPackets uint32 + PeerCount uint32 + Quality float64 + ReceivedPackets uint64 + RecoveredFirstRetryReq uint32 + RecoveredPackets uint32 + ReorderedPackets uint32 + RetryBandwidth uint + Rtt uint32 + SentPackets uint64 + Status int + type RistCtx *C.struct_rist_ctx + func ReceiverCreate(profile RistProfile, loggingSettings *RistLoggingSettings) (RistCtx, error) + type RistData struct + Data []byte + DestinationPort uint16 + func ReceiverReadData(ctx RistCtx, timeout int) (*RistData, int, error) + type RistDataReadTimeout struct + func (e *RistDataReadTimeout) Error() string + type RistLogLevel int + const LogLevelDebug + const LogLevelDisable + const LogLevelError + const LogLevelInfo + const LogLevelNotice + const LogLevelWarn + type RistLoggingSettings C.struct_rist_logging_settings + func CreateRistLoggingSettingsWithCB(cb LogCallbackFunc) *RistLoggingSettings + type RistProfile int + const RistProfileMain + const RistProfileSimple + type SenderPeerStats struct + Bandwidth uint + CName string + PeerId uint32 + Quality float64 + ReceivedPackets uint64 + RetransmittedPackets uint64 + RetryBandwidth uint + Rtt uint32 + SentPackets uint64 + type StatsCallbackFunc func(*StatsContainer) + type StatsContainer struct + ReceiverFlowStats *ReceiverFlowStats + SenderStats *SenderPeerStats