~hendrik-grewe/transmission/private-patch

« back to all changes in this revision

Viewing changes to third-party/libutp/utp_config_example.h

  • Committer: jordan
  • Date: 2011-02-18 00:31:49 UTC
  • Revision ID: svn-v4:f4695dd4-2c0a-0410-b89c-da849a56a58e:trunk:11919
import libutp into third-party/ and plug it in to autoconf, automake

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
uint64 UTP_GetGlobalUTPBytesSent(const struct sockaddr *remote, socklen_t remotelen) { return 0; }
 
8
 
 
9
enum bandwidth_type_t {
 
10
        payload_bandwidth, connect_overhead,
 
11
        close_overhead, ack_overhead,
 
12
        header_overhead, retransmit_overhead
 
13
};
 
14
 
 
15
#ifdef WIN32
 
16
#define I64u "%I64u"
 
17
#else
 
18
#define I64u "%Lu"
 
19
#endif
 
20
#ifdef WIN32
 
21
#define snprintf _snprintf
 
22
#endif
 
23
 
 
24
#define g_log_utp 0
 
25
#define g_log_utp_verbose 0
 
26
void utp_log(char const* fmt, ...);