# Ack

class Ack(var lastAcknowledgedPacketSequenceNumber: Int = 0, var rtt: Int = 0, var rttVariance: Int = 0, var availableBufferSize: Int = 0, var packetReceivingRate: Int = 0, var estimatedLinkCapacity: Int = 0, var receivingRate: Int = 0) : ControlPacket

Created by pedro on 22/8/23.

## Constructors

Ack
Link copied to clipboard
constructor(lastAcknowledgedPacketSequenceNumber: Int = 0, rtt: Int = 0, rttVariance: Int = 0, availableBufferSize: Int = 0, packetReceivingRate: Int = 0, estimatedLinkCapacity: Int = 0, receivingRate: Int = 0)

## Properties

availableBufferSize
Link copied to clipboard
var availableBufferSize: Int
buffer
Link copied to clipboard
var buffer: ByteArrayOutputStream
controlType
Link copied to clipboard
var controlType: ControlType
estimatedLinkCapacity
Link copied to clipboard
var estimatedLinkCapacity: Int
lastAcknowledgedPacketSequenceNumber
Link copied to clipboard
var lastAcknowledgedPacketSequenceNumber: Int
packetReceivingRate
Link copied to clipboard
var packetReceivingRate: Int
receivingRate
Link copied to clipboard
var receivingRate: Int
rtt
Link copied to clipboard
var rtt: Int
rttVariance
Link copied to clipboard
var rttVariance: Int
socketId
Link copied to clipboard
var socketId: Int
subtype
Link copied to clipboard
var subtype: ControlType
ts
Link copied to clipboard
var ts: Int
typeSpecificInformation
Link copied to clipboard
var typeSpecificInformation: Int

## Functions

getData
Link copied to clipboard
fun getData(): ByteArray
read
Link copied to clipboard
fun read(input: InputStream)
resetBuffer
Link copied to clipboard
fun resetBuffer()
toString
Link copied to clipboard
open override fun toString(): String
write
Link copied to clipboard
fun write(ts: Int, socketId: Int)