UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
tfrc.h
Go to the documentation of this file.
1/*
2 * FILE: tfrc.h
3 * AUTHOR: Colin Perkins <csp@isi.edu>
4 *
5 * Copyright (C) 2002 USC Information Sciences Institute
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, is permitted provided that the following conditions
9 * are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 *
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 *
21 * This product includes software developed by the University of Southern
22 * California Information Sciences Institute.
23 *
24 * 4. Neither the name of the University nor of the Institute may be used
25 * to endorse or promote products derived from this software without
26 * specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
29 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
30 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
31 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
32 * EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
33 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
38 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
39 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 * $Revision: 1.1 $
42 * $Date: 2007/11/08 09:48:59 $
43 *
44 */
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50#include "tv.h"
51
52struct tfrc;
53
54struct tfrc *tfrc_init(time_ns_t curr_time);
55void tfrc_done(struct tfrc *state);
56
57void tfrc_recv_data (struct tfrc *state, time_ns_t curr_time, uint16_t seqnum, unsigned length);
58void tfrc_recv_rtt (struct tfrc *state, time_ns_t curr_time, uint32_t rtt);
59double tfrc_feedback_txrate(struct tfrc *state, time_ns_t curr_time);
60int tfrc_feedback_is_due(struct tfrc *state, time_ns_t curr_time);
61
62#ifdef __cplusplus
63}
64#endif
65
void ** state
Definition tfrc.c:69
struct tfrc * tfrc_init(time_ns_t curr_time)
Definition tfrc.c:365
double tfrc_feedback_txrate(struct tfrc *state, time_ns_t curr_time)
Definition tfrc.c:486
void tfrc_recv_rtt(struct tfrc *state, time_ns_t curr_time, uint32_t rtt)
Definition tfrc.c:460
void tfrc_recv_data(struct tfrc *state, time_ns_t curr_time, uint16_t seqnum, unsigned length)
Definition tfrc.c:436
void tfrc_done(struct tfrc *state)
Definition tfrc.c:415
int tfrc_feedback_is_due(struct tfrc *state, time_ns_t curr_time)
Definition tfrc.c:474
long long time_ns_t
Definition tv.h:81