diff options
author | Melanie Thielker | 2008-07-22 17:58:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-07-22 17:58:42 +0000 |
commit | f112cebde2c1bc06108839acac82bc8addd7c506 (patch) | |
tree | 7f1e7fabf2fec74171d5982f09d847b47e20d7ca /OpenSim/Region/Environment | |
parent | * refactor: move new inventory service call by user server to OGS1 with all t... (diff) | |
download | opensim-SC_OLD-f112cebde2c1bc06108839acac82bc8addd7c506.zip opensim-SC_OLD-f112cebde2c1bc06108839acac82bc8addd7c506.tar.gz opensim-SC_OLD-f112cebde2c1bc06108839acac82bc8addd7c506.tar.bz2 opensim-SC_OLD-f112cebde2c1bc06108839acac82bc8addd7c506.tar.xz |
Refactor the packet scheduling out of ClientView. Add intelligent
resending, timeouts, packet discarding. Add notification event for
packet discarding. Add priority scheduling for packet queues.
Add outgoing duplicate detection facility. Correct packet sequencing.
Make provisions for automatic server side throttle adjustments (comes
in next installment)
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 2 |
3 files changed, 12 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index 574bc63..72520c4 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | |||
@@ -51,6 +51,11 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
51 | m_scene = scene; | 51 | m_scene = scene; |
52 | } | 52 | } |
53 | 53 | ||
54 | public IScene Scene | ||
55 | { | ||
56 | get { return m_scene; } | ||
57 | } | ||
58 | |||
54 | public void Say(string message) | 59 | public void Say(string message) |
55 | { | 60 | { |
56 | SendOnChatFromViewer(message, ChatTypeEnum.Say); | 61 | SendOnChatFromViewer(message, ChatTypeEnum.Say); |
@@ -259,7 +264,6 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
259 | public event FriendActionDelegate OnApproveFriendRequest; | 264 | public event FriendActionDelegate OnApproveFriendRequest; |
260 | public event FriendActionDelegate OnDenyFriendRequest; | 265 | public event FriendActionDelegate OnDenyFriendRequest; |
261 | public event FriendshipTermination OnTerminateFriendship; | 266 | public event FriendshipTermination OnTerminateFriendship; |
262 | public event PacketStats OnPacketStats; | ||
263 | 267 | ||
264 | public event EconomyDataRequest OnEconomyDataRequest; | 268 | public event EconomyDataRequest OnEconomyDataRequest; |
265 | public event MoneyBalanceRequest OnMoneyBalanceRequest; | 269 | public event MoneyBalanceRequest OnMoneyBalanceRequest; |
@@ -518,7 +522,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
518 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, | 522 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, |
519 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, | 523 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, |
520 | uint parentID, | 524 | uint parentID, |
521 | byte[] particleSystem, byte clickAction, bool track) | 525 | byte[] particleSystem, byte clickAction) |
522 | { | 526 | { |
523 | } | 527 | } |
524 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, | 528 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, |
@@ -527,7 +531,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
527 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, | 531 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, |
528 | uint parentID, | 532 | uint parentID, |
529 | byte[] particleSystem, byte clickAction, byte[] textureanimation, | 533 | byte[] particleSystem, byte clickAction, byte[] textureanimation, |
530 | bool attachment, uint AttachmentPoint, LLUUID AssetId, LLUUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius, bool track) | 534 | bool attachment, uint AttachmentPoint, LLUUID AssetId, LLUUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius) |
531 | { | 535 | { |
532 | } | 536 | } |
533 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, | 537 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, |
@@ -711,6 +715,10 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
711 | { | 715 | { |
712 | } | 716 | } |
713 | 717 | ||
718 | public void ProcessInPacket(Packet NewPack) | ||
719 | { | ||
720 | } | ||
721 | |||
714 | public void Close(bool ShutdownCircuit) | 722 | public void Close(bool ShutdownCircuit) |
715 | { | 723 | { |
716 | } | 724 | } |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 626aaaa..6bf552c 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -2088,7 +2088,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
2088 | client.OnMoneyTransferRequest += ProcessMoneyTransferRequest; | 2088 | client.OnMoneyTransferRequest += ProcessMoneyTransferRequest; |
2089 | client.OnParcelBuy += ProcessParcelBuy; | 2089 | client.OnParcelBuy += ProcessParcelBuy; |
2090 | client.OnAvatarPickerRequest += ProcessAvatarPickerRequest; | 2090 | client.OnAvatarPickerRequest += ProcessAvatarPickerRequest; |
2091 | client.OnPacketStats += AddPacketStats; | ||
2092 | client.OnObjectIncludeInSearch += m_innerScene.MakeObjectSearchable; | 2091 | client.OnObjectIncludeInSearch += m_innerScene.MakeObjectSearchable; |
2093 | client.OnTeleportHomeRequest += TeleportClientHome; | 2092 | client.OnTeleportHomeRequest += TeleportClientHome; |
2094 | client.OnSetStartLocationRequest += SetHomeRezPoint; | 2093 | client.OnSetStartLocationRequest += SetHomeRezPoint; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 253a83e..156310b 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -2085,7 +2085,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2085 | remoteClient.SendPrimitiveToClient(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, m_shape, | 2085 | remoteClient.SendPrimitiveToClient(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, m_shape, |
2086 | lPos, Velocity, Acceleration, RotationOffset, RotationalVelocity, clientFlags, m_uuid, _ownerID, | 2086 | lPos, Velocity, Acceleration, RotationOffset, RotationalVelocity, clientFlags, m_uuid, _ownerID, |
2087 | m_text, color, _parentID, m_particleSystem, m_clickAction, m_TextureAnimation, m_IsAttachment, | 2087 | m_text, color, _parentID, m_particleSystem, m_clickAction, m_TextureAnimation, m_IsAttachment, |
2088 | m_attachmentPoint,fromAssetID, Sound, SoundGain, SoundFlags, SoundRadius, false); | 2088 | m_attachmentPoint,fromAssetID, Sound, SoundGain, SoundFlags, SoundRadius); |
2089 | } | 2089 | } |
2090 | 2090 | ||
2091 | /// <summary> | 2091 | /// <summary> |