diff options
author | UbitUmarov | 2014-08-14 20:41:36 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-14 20:41:36 +0100 |
commit | 8c657e48377213e7ee66c05a4047085cee6084ea (patch) | |
tree | 46103e8a47114a3ee9b0a206f97ee728efeef7eb /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |
parent | try external bakedModule when local cache is invalid and not just at login (diff) | |
download | opensim-SC-8c657e48377213e7ee66c05a4047085cee6084ea.zip opensim-SC-8c657e48377213e7ee66c05a4047085cee6084ea.tar.gz opensim-SC-8c657e48377213e7ee66c05a4047085cee6084ea.tar.bz2 opensim-SC-8c657e48377213e7ee66c05a4047085cee6084ea.tar.xz |
add a estimator of client ping time, and painfully make it visible in show
connections console command
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 59d1c69..e69bf23 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -419,6 +419,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
419 | public ulong ActiveGroupPowers { get { return m_activeGroupPowers; } } | 419 | public ulong ActiveGroupPowers { get { return m_activeGroupPowers; } } |
420 | public bool IsGroupMember(UUID groupID) { return m_groupPowers.ContainsKey(groupID); } | 420 | public bool IsGroupMember(UUID groupID) { return m_groupPowers.ContainsKey(groupID); } |
421 | 421 | ||
422 | public int PingTimeMS | ||
423 | { | ||
424 | get | ||
425 | { | ||
426 | if (UDPClient != null) | ||
427 | return UDPClient.PingTimeMS; | ||
428 | return 0; | ||
429 | } | ||
430 | } | ||
431 | |||
422 | /// <summary> | 432 | /// <summary> |
423 | /// Entity update queues | 433 | /// Entity update queues |
424 | /// </summary> | 434 | /// </summary> |
@@ -461,6 +471,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
461 | set { m_disableFacelights = value; } | 471 | set { m_disableFacelights = value; } |
462 | } | 472 | } |
463 | 473 | ||
474 | |||
464 | public bool SendLogoutPacketWhenClosing { set { m_SendLogoutPacketWhenClosing = value; } } | 475 | public bool SendLogoutPacketWhenClosing { set { m_SendLogoutPacketWhenClosing = value; } } |
465 | 476 | ||
466 | 477 | ||
@@ -1638,6 +1649,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1638 | pc.PingID.OldestUnacked = 0; | 1649 | pc.PingID.OldestUnacked = 0; |
1639 | 1650 | ||
1640 | OutPacket(pc, ThrottleOutPacketType.Unknown); | 1651 | OutPacket(pc, ThrottleOutPacketType.Unknown); |
1652 | UDPClient.m_lastStartpingTimeMS = Util.EnvironmentTickCount(); | ||
1641 | } | 1653 | } |
1642 | 1654 | ||
1643 | public void SendKillObject(List<uint> localIDs) | 1655 | public void SendKillObject(List<uint> localIDs) |