acknowledge

suspend fun acknowledge(sequenceNumber: UShort)

Acknowledges all packets in the buffer that come before the specified sequenceNumber. This should be called when the receiver sends back an acknowledgement sequence number. If any packets are acknowledged by this call it will fee up space in the sending window and notify any suspended sendData calls.