00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _TRANSPORTCONFIG_H_
00012 #define _TRANSPORTCONFIG_H_
00013 #include "RNPlatform/Inc/DLLExportAPI.h"
00014
00015 namespace RNReplicaNet
00016 {
00017
00022 class XPURLDLL_API TransportConfig
00023 {
00024 public:
00031 static void SetResendTimes(const int numberOfTimes,const float *retryTimes);
00032
00038 static void GetResendTimes(int *numberOfTimes,float *retryTimes);
00039
00050 static void SetPacketBufferTime(const float maxTime = 0.0f);
00051
00056 static float GetPacketBufferTime(void);
00057
00064 static void PacketBufferBeginCaptureWindow(void);
00065
00070 static void PacketBufferEndCaptureWindow(const bool kickBuffer = true);
00071
00079 static void SetPacketBufferEnable(const bool enable = false);
00080
00085 static bool GetPacketBufferEnable(void);
00086
00087 private:
00088 TransportConfig() {};
00089 };
00090
00091 }
00092
00093 #endif