Make timing parameters public within namespace Network

So that UI timeouts can adjust accordingly.
This commit is contained in:
Keegan McAllister
2012-05-02 17:53:53 -04:00
committed by Keith Winstein
parent 67a85eaf99
commit c258e0bc4e
+8 -8
View File
@@ -34,18 +34,18 @@ using std::pair;
using namespace TransportBuffers;
namespace Network {
/* timing parameters */
const int SEND_INTERVAL_MIN = 20; /* ms between frames */
const int SEND_INTERVAL_MAX = 250; /* ms between frames */
const int ACK_INTERVAL = 3000; /* ms between empty acks */
const int ACK_DELAY = 100; /* ms before delayed ack */
const int SHUTDOWN_RETRIES = 16; /* number of shutdown packets to send before giving up */
const int ACTIVE_RETRY_TIMEOUT = 10000; /* attempt to resend at frame rate */
template <class MyState>
class TransportSender
{
private:
/* timing parameters */
static const int SEND_INTERVAL_MIN = 20; /* ms between frames */
static const int SEND_INTERVAL_MAX = 250; /* ms between frames */
static const int ACK_INTERVAL = 3000; /* ms between empty acks */
static const int ACK_DELAY = 100; /* ms before delayed ack */
static const int SHUTDOWN_RETRIES = 16; /* number of shutdown packets to send before giving up */
static const int ACTIVE_RETRY_TIMEOUT = 10000; /* attempt to resend at frame rate */
/* helper methods for tick() */
void update_assumed_receiver_state( void );
void attempt_prospective_resend_optimization( string &proposed_diff );