DataPacket

class DataPacket(var sequenceNumber: Int = 0, var packetPosition: PacketPosition = PacketPosition.SINGLE, var order: Boolean = false, var encryption: KeyBasedEncryption = KeyBasedEncryption.NONE, var retransmitted: Boolean = false, var messageNumber: Int = 0, var ts: Int = 0, var socketId: Int = 0, var payload: ByteArray = byteArrayOf()) : SrtPacket

Created by pedro on 21/8/23.

Constructors

Link copied to clipboard
constructor(sequenceNumber: Int = 0, packetPosition: PacketPosition = PacketPosition.SINGLE, order: Boolean = false, encryption: KeyBasedEncryption = KeyBasedEncryption.NONE, retransmitted: Boolean = false, messageNumber: Int = 0, ts: Int = 0, socketId: Int = 0, payload: ByteArray = byteArrayOf())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var ts: Int

Functions

Link copied to clipboard
Link copied to clipboard
fun getSize(): Int
Link copied to clipboard
fun read(input: InputStream)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun write()