Make timing parameters public within namespace Network
So that UI timeouts can adjust accordingly.
This commit is contained in:
committed by
Keith Winstein
parent
67a85eaf99
commit
c258e0bc4e
@@ -34,18 +34,18 @@ using std::pair;
|
|||||||
using namespace TransportBuffers;
|
using namespace TransportBuffers;
|
||||||
|
|
||||||
namespace Network {
|
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>
|
template <class MyState>
|
||||||
class TransportSender
|
class TransportSender
|
||||||
{
|
{
|
||||||
private:
|
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() */
|
/* helper methods for tick() */
|
||||||
void update_assumed_receiver_state( void );
|
void update_assumed_receiver_state( void );
|
||||||
void attempt_prospective_resend_optimization( string &proposed_diff );
|
void attempt_prospective_resend_optimization( string &proposed_diff );
|
||||||
|
|||||||
Reference in New Issue
Block a user