|
@@ -719,6 +719,14 @@ namespace ENet {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public uint LastRoundTripTime {
|
|
|
|
|
+ get {
|
|
|
|
|
+ CheckCreated();
|
|
|
|
|
+
|
|
|
|
|
+ return Native.enet_peer_get_last_rtt(nativePeer);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public uint LastSendTime {
|
|
public uint LastSendTime {
|
|
|
get {
|
|
get {
|
|
|
CheckCreated();
|
|
CheckCreated();
|
|
@@ -884,7 +892,7 @@ namespace ENet {
|
|
|
public const uint timeoutLimit = 32;
|
|
public const uint timeoutLimit = 32;
|
|
|
public const uint timeoutMinimum = 5000;
|
|
public const uint timeoutMinimum = 5000;
|
|
|
public const uint timeoutMaximum = 30000;
|
|
public const uint timeoutMaximum = 30000;
|
|
|
- public const uint version = (2 << 16) | (3 << 8) | (6);
|
|
|
|
|
|
|
+ public const uint version = (2 << 16) | (3 << 8) | (7);
|
|
|
|
|
|
|
|
public static bool Initialize() {
|
|
public static bool Initialize() {
|
|
|
return Native.enet_initialize() == 0;
|
|
return Native.enet_initialize() == 0;
|
|
@@ -1047,6 +1055,9 @@ namespace ENet {
|
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
internal static extern uint enet_peer_get_rtt(IntPtr peer);
|
|
internal static extern uint enet_peer_get_rtt(IntPtr peer);
|
|
|
|
|
|
|
|
|
|
+ [DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
+ internal static extern uint enet_peer_get_last_rtt(IntPtr peer);
|
|
|
|
|
+
|
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
|
|
|
internal static extern uint enet_peer_get_lastsendtime(IntPtr peer);
|
|
internal static extern uint enet_peer_get_lastsendtime(IntPtr peer);
|
|
|
|
|
|