Commit 89e337a9 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Add support for delivery rate estimation.

parent 21857f60
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ cdef extern from "proto/block.h":

    ctypedef prrtBlock PrrtBlock

cdef extern from "proto/packet.h":
cdef extern from "proto/types/packet.h":
    cdef struct prrtPacket:
        uint8_t type_priority;
        uint8_t index;
@@ -145,6 +145,7 @@ cdef extern from "proto/socket.h":
    bint PrrtSocket_uses_thread_pinning(PrrtSocket *socket)
    uint32_t PrrtSocket_get_rtt(PrrtSocket *socket)
    float PrrtSocket_get_plr(PrrtSocket *socket)
    uint32_t PrrtSocket_get_delivery_rate(PrrtSocket *socket)
    bint PrrtSocket_enable_thread_pinning(PrrtSocket *socket)

cdef extern from "proto/stores/packetDeliveryStore.h":
+9 −8
Original line number Diff line number Diff line
@@ -3,22 +3,23 @@ add_library(PRRT ../defines.h
        channelStateInformation.c channelStateInformation.h
        clock.c clock.h
        codingParams.c codingParams.h
        packet.c packet.h
        receiver.c receiver.h
        socket.c socket.h
        ../xlap/xlap.c ../xlap/xlap.h
        applicationConstraints.c applicationConstraints.h
        vdmcode/block_code.c vdmcode/block_code.h
        stores/deliveredPacketTable.c stores/deliveredPacketTable.h
        types/lossStatistics.c types/lossStatistics.h
        processes/dataReceiver.c processes/dataReceiver.h
        processes/feedbackReceiver.c processes/feedbackReceiver.h
        processes/dataTransmitter.c processes/dataTransmitter.h
        stores/repairBlockStore.c stores/repairBlockStore.h
        stores/packetTimeoutTable.c stores/packetTimeoutTable.h
        stores/dataPacketStore.c stores/dataPacketStore.h
        types/packetTimeout.c types/packetTimeout.h
        stores/deliveredPacketTable.c stores/deliveredPacketTable.h
        stores/inFlightPacketStore.c stores/inFlightPacketStore.h
        stores/packetTimeoutTable.c stores/packetTimeoutTable.h
        stores/packetDeliveryStore.c stores/packetDeliveryStore.h
        stores/receptionTable.c stores/receptionTable.h)
        stores/receptionTable.c stores/receptionTable.h
        stores/repairBlockStore.c stores/repairBlockStore.h
        types/packetTimeout.c types/packetTimeout.h
        types/lossStatistics.c types/lossStatistics.h
        types/packet.c types/packet.h
        vdmcode/block_code.c vdmcode/block_code.h)

target_link_libraries(PRRT rt)
+1 −1
Original line number Diff line number Diff line
#ifndef PRRT_NETWORKCONTRAINTS_H
#define PRRT_NETWORKCONTRAINTS_H

#include "packet.h"
#include "types/packet.h"

typedef struct applicationConstraints {
    prrtTimedelta_t targetDelay_us;
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
#include "../util/list.h"
#include "../util/dbg.h"
#include "../util/common.h"
#include "packet.h"
#include "types/packet.h"
#include "block.h"

static void gather_redundancy_packets(const PrrtBlock *block_ptr, gf *const *fec, int16_t *idx_p)
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@

#include <stdbool.h>
#include "codingParams.h"
#include "packet.h"
#include "types/packet.h"
#include "../util/list.h"
#include "vdmcode/block_code.h"

Loading