#include <TransportConfig.h>
Static Public Member Functions | |
static void | SetResendTimes (const int numberOfTimes, const float *retryTimes) |
static void | GetResendTimes (int *numberOfTimes, float *retryTimes) |
static void | SetPacketBufferTime (const float maxTime=0.0f) |
static float | GetPacketBufferTime (void) |
static void | PacketBufferBeginCaptureWindow (void) |
static void | PacketBufferEndCaptureWindow (const bool kickBuffer=true) |
static void | SetPacketBufferEnable (const bool enable=false) |
static bool | GetPacketBufferEnable (void) |
|
Allows the setting for SetPacketBufferEnable() to be read.
|
|
Allow the packet buffer time to be read.
|
|
Allows the resend time delays to be read.
|
|
This allows the packet buffer time window to be fine tuned by allowing the application to start buffering all sent packets, regardless of the time specified by SetPacketBufferTime(). Packets will only be sent when the buffers become full. A matching call to PacketBufferEndCapture() must be made to signify when normal packet buffering configured by SetPacketBufferTime() is resumed. |
|
This is the matching call to PacketBufferBeginCapture() and signifies the end of the packet buffer window.
|
|
This can override all other packet buffering settings. If all packet buffering is disabled then this will save memory allocated for potential packet buffers in the future. This is because the PacketBufferBeginCaptureWindow() could be used at any point in the application and to allow this mechanism to work the transport needs to be warned about there being possible buffered packets. This function must not be used when the network has been started. The default is to disable packet buffering and to not allocate memory for potential packet buffers. SetPacketBufferEnable(true) should be used if any packet buffers are configured for potential use. This configuration option remains in force for the lifetime of the application until a new function call is made.
|
|
This allow the packet buffer time to be configured for each Transport. The larger the buffer time the more individual packets can be merged into one larger packet before sending. The default value is 0.0f which means this feature is disabled. This configuration option remains in force for the lifetime of the application until a new function call is made. RNReplicaNet::TransportConfig::SetPacketBufferTime(1.0f / 50.0f); RNReplicaNet::TransportConfig::SetPacketBufferEnable(true);
|
|
This allows the delay between reliable packets being resent due to failed ACKs to be altered. These options are provided for advanced users to tweak. Changing these settings can make your XPURL derived network connection unstable, care must be taken. This configuration option remains in force for the lifetime of the application until a new function call is made.
|