source: trunk/third-party/utp_config.h @ 14350

Last change on this file since 14350 was 14350, checked in by mikedld, 8 years ago

#5828: Initial CMake build system support

File size: 900 bytes
Line 
1#define CCONTROL_TARGET (100 * 1000) // us
2#define RATE_CHECK_INTERVAL 10000 // ms
3#define DYNAMIC_PACKET_SIZE_ENABLED false
4#define DYNAMIC_PACKET_SIZE_FACTOR 2
5// This should return the global number of bytes sent, used for determining dynamic
6// packet size based on rate
7
8#warning implement this in libtransmission
9uint64 UTP_GetGlobalUTPBytesSent(const struct sockaddr *remote, socklen_t remotelen) { return 0; }
10
11enum bandwidth_type_t {
12        payload_bandwidth, connect_overhead,
13        close_overhead, ack_overhead,
14        header_overhead, retransmit_overhead
15};
16
17#ifdef _WIN32
18#define I64u "%I64u"
19#else
20#define I64u "%Lu"
21#endif
22#ifdef _WIN32
23#define snprintf _snprintf
24#endif
25
26#define g_log_utp 0
27#define g_log_utp_verbose 0
28void utp_log(char const* fmt, ...)
29{
30        /*
31        printf("[%u] ", UTP_GetMilliseconds());
32        va_list vl;
33        va_start(vl, fmt);
34        vprintf(fmt, vl);
35        va_end(vl);
36        puts("");
37        fflush(stdout);
38        */
39};
Note: See TracBrowser for help on using the repository browser.