Versions in this module Expand all Collapse all v0 v0.6.0 Mar 19, 2024 Changes in this version + const KM_BADSECRET + const KM_NOSECRET + const MAX_PAYLOAD_SIZE + const MAX_SEQUENCENUMBER + const MAX_TIMESTAMP + const SRTFLAG_CRYPT + const SRTFLAG_PACKET_FILTER + const SRTFLAG_PERIODICNAK + const SRTFLAG_REXMITFLG + const SRTFLAG_STREAM + const SRTFLAG_TLPKTDROP + const SRTFLAG_TSBPDRCV + const SRTFLAG_TSBPDSND + type CIF interface + Marshal func(w io.Writer) + String func() string + Unmarshal func(data []byte) error + type CIFACK struct + AvailableBufferSize uint32 + EstimatedLinkCapacity uint32 + IsLite bool + IsSmall bool + LastACKPacketSequenceNumber circular.Number + PacketsReceivingRate uint32 + RTT uint32 + RTTVar uint32 + ReceivingRate uint32 + func (c *CIFACK) Marshal(w io.Writer) + func (c *CIFACK) Unmarshal(data []byte) error + func (c CIFACK) String() string + type CIFHandshake struct + EncryptionField uint16 + ExtensionField uint16 + HandshakeType HandshakeType + HasHS bool + HasKM bool + HasSID bool + InitialPacketSequenceNumber circular.Number + IsRequest bool + MaxFlowWindowSize uint32 + MaxTransmissionUnitSize uint32 + PeerIP srtnet.IP + SRTHS *CIFHandshakeExtension + SRTKM *CIFKeyMaterialExtension + SRTSocketId uint32 + StreamId string + SynCookie uint32 + Version uint32 + func (c *CIFHandshake) Marshal(w io.Writer) + func (c *CIFHandshake) Unmarshal(data []byte) error + func (c CIFHandshake) String() string + type CIFHandshakeExtension struct + RecvTSBPDDelay uint16 + SRTFlags CIFHandshakeExtensionFlags + SRTVersion uint32 + SendTSBPDDelay uint16 + func (c *CIFHandshakeExtension) Marshal(w io.Writer) + func (c *CIFHandshakeExtension) Unmarshal(data []byte) error + func (c CIFHandshakeExtension) String() string + type CIFHandshakeExtensionFlags struct + CRYPT bool + PACKET_FILTER bool + PERIODICNAK bool + REXMITFLG bool + STREAM bool + TLPKTDROP bool + TSBPDRCV bool + TSBPDSND bool + type CIFKeyMaterialExtension struct + Authentication uint8 + Cipher uint8 + Error uint32 + KLen uint16 + KeyBasedEncryption PacketEncryption + KeyEncryptionKeyIndex uint32 + PacketType uint8 + Resv1 uint8 + Resv2 uint8 + Resv3 uint16 + S uint8 + SLen uint16 + Salt []byte + Sign uint16 + StreamEncapsulation uint8 + Version uint8 + Wrap []byte + func (c *CIFKeyMaterialExtension) Marshal(w io.Writer) + func (c *CIFKeyMaterialExtension) Unmarshal(data []byte) error + func (c CIFKeyMaterialExtension) String() string + type CIFNAK struct + LostPacketSequenceNumber []circular.Number + func (c *CIFNAK) Marshal(w io.Writer) + func (c *CIFNAK) Unmarshal(data []byte) error + func (c CIFNAK) String() string + type CIFShutdown struct + func (c *CIFShutdown) Marshal(w io.Writer) + func (c *CIFShutdown) Unmarshal(data []byte) error + func (c CIFShutdown) String() string + type CtrlSubType uint16 + const CTRLSUBTYPE_NONE + const EXTTYPE_CONGESTION + const EXTTYPE_FILTER + const EXTTYPE_GROUP + const EXTTYPE_HSREQ + const EXTTYPE_HSRSP + const EXTTYPE_KMREQ + const EXTTYPE_KMRSP + const EXTTYPE_SID + func (h CtrlSubType) String() string + func (h CtrlSubType) Value() uint16 + type CtrlType uint16 + const CRTLTYPE_DROPREQ + const CRTLTYPE_PEERERROR + const CTRLTYPE_ACK + const CTRLTYPE_ACKACK + const CTRLTYPE_HANDSHAKE + const CTRLTYPE_KEEPALIVE + const CTRLTYPE_NAK + const CTRLTYPE_SHUTDOWN + const CTRLTYPE_USER + const CTRLTYPE_WARN + func (h CtrlType) String() string + func (h CtrlType) Value() uint16 + type HandshakeType uint32 + const HSTYPE_AGREEMENT + const HSTYPE_CONCLUSION + const HSTYPE_DONE + const HSTYPE_INDUCTION + const HSTYPE_WAVEHAND + func (h HandshakeType) IsHandshake() bool + func (h HandshakeType) IsRejection() bool + func (h HandshakeType) String() string + func (h HandshakeType) Val() uint32 + type Packet interface + Clone func() Packet + Data func() []byte + Decommission func() + Dump func() string + Header func() *PacketHeader + Len func() uint64 + Marshal func(w io.Writer) error + MarshalCIF func(c CIF) + SetData func([]byte) + String func() string + Unmarshal func(data []byte) error + UnmarshalCIF func(c CIF) error + func NewPacket(addr net.Addr) Packet + func NewPacketFromData(addr net.Addr, rawdata []byte) (Packet, error) + type PacketEncryption uint + const EvenAndOddKey + const EvenKeyEncrypted + const OddKeyEncrypted + const UnencryptedPacket + func (p PacketEncryption) IsValid() bool + func (p PacketEncryption) Opposite() PacketEncryption + func (p PacketEncryption) String() string + func (p PacketEncryption) Val() uint32 + type PacketHeader struct + Addr net.Addr + ControlType CtrlType + DestinationSocketId uint32 + IsControlPacket bool + KeyBaseEncryptionFlag PacketEncryption + MessageNumber uint32 + OrderFlag bool + PacketPositionFlag PacketPosition + PacketSequenceNumber circular.Number + PktTsbpdTime uint64 + RetransmittedPacketFlag bool + SubType CtrlSubType + Timestamp uint32 + TypeSpecific uint32 + type PacketPosition uint + const FirstPacket + const LastPacket + const MiddlePacket + const SinglePacket + func (p PacketPosition) IsValid() bool + func (p PacketPosition) String() string + func (p PacketPosition) Val() uint32