diff options
added experimental packet tracker (LLPacketTracker.cs), which can be told to track a packet and if it hasn't been acked within a set time, trigger a IClientAPI event, that the application/scene can handle. Currently only terrain packet tracking is finished, Tracking for initial Prim packets (first full update for a prim) is being worked on. Future improvements would be to make it a more generic packet tracker with callback delegates instead of events.
Add a test event handler (which would fire after a minute if a terrain packet hadn't been acked) to scene to handle the OnUnackedTerrain event, which currently just resends the terrain patch.
The idea of this packet tracking is for the region level application to be able to know if the client stack gave up on sending a packet.
Diffstat (limited to 'OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs')
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index 6179ccf..c975df5 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -202,6 +202,8 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
202 | public event SetScriptRunning OnSetScriptRunning; | 202 | public event SetScriptRunning OnSetScriptRunning; |
203 | public event UpdateVector OnAutoPilotGo; | 203 | public event UpdateVector OnAutoPilotGo; |
204 | 204 | ||
205 | public event TerrainUnacked OnUnackedTerrain; | ||
206 | |||
205 | #pragma warning restore 67 | 207 | #pragma warning restore 67 |
206 | 208 | ||
207 | private LLUUID myID = LLUUID.Random(); | 209 | private LLUUID myID = LLUUID.Random(); |
@@ -352,6 +354,9 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
352 | public virtual void SendLayerData(int px, int py, float[] map) | 354 | public virtual void SendLayerData(int px, int py, float[] map) |
353 | { | 355 | { |
354 | } | 356 | } |
357 | public virtual void SendLayerData(int px, int py, float[] map, bool track) | ||
358 | { | ||
359 | } | ||
355 | 360 | ||
356 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look) | 361 | public virtual void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look) |
357 | { | 362 | { |
@@ -427,7 +432,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
427 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, | 432 | LLVector3 acc, LLQuaternion rotation, LLVector3 rvel, uint flags, |
428 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, | 433 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, |
429 | uint parentID, | 434 | uint parentID, |
430 | byte[] particleSystem, byte clickAction) | 435 | byte[] particleSystem, byte clickAction, bool track) |
431 | { | 436 | { |
432 | } | 437 | } |
433 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, | 438 | public virtual void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, |
@@ -436,7 +441,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
436 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, | 441 | LLUUID objectID, LLUUID ownerID, string text, byte[] color, |
437 | uint parentID, | 442 | uint parentID, |
438 | byte[] particleSystem, byte clickAction, byte[] textureanimation, | 443 | byte[] particleSystem, byte clickAction, byte[] textureanimation, |
439 | bool attachment, uint AttachmentPoint, LLUUID AssetId, LLUUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius) | 444 | bool attachment, uint AttachmentPoint, LLUUID AssetId, LLUUID SoundId, double SoundVolume, byte SoundFlags, double SoundRadius, bool track) |
440 | { | 445 | { |
441 | } | 446 | } |
442 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, | 447 | public virtual void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, |