aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-30 20:17:30 +0000
committerJustin Clarke Casey2008-10-30 20:17:30 +0000
commit419775c72bcf0297e84ff3c74354a0aba523e1e2 (patch)
tree76f661af80bc8eebe0ed1509a7249e7a2db7b044 /OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
parent* Remove OpenSim.Data.SQLite.Tests.dll.config that probably accidentally made... (diff)
downloadopensim-SC_OLD-419775c72bcf0297e84ff3c74354a0aba523e1e2.zip
opensim-SC_OLD-419775c72bcf0297e84ff3c74354a0aba523e1e2.tar.gz
opensim-SC_OLD-419775c72bcf0297e84ff3c74354a0aba523e1e2.tar.bz2
opensim-SC_OLD-419775c72bcf0297e84ff3c74354a0aba523e1e2.tar.xz
* test: Test that the client stack doesn't completely blow up if a client passes it malformed data
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
index 8170150..95ee516 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs
@@ -72,12 +72,22 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
72 } 72 }
73 73
74 /// <summary> 74 /// <summary>
75 /// Load some data to be received by the LLUDPServer on the next receive call
76 /// </summary>
77 /// <param name="data"></param>
78 /// <param name="epSender"></param>
79 public void LoadReceive(byte[] data, EndPoint epSender)
80 {
81 m_chunksToLoad.Enqueue(new ChunkSenderTuple(data, epSender));
82 }
83
84 /// <summary>
75 /// Load a packet to be received by the LLUDPServer on the next receive call 85 /// Load a packet to be received by the LLUDPServer on the next receive call
76 /// </summary> 86 /// </summary>
77 /// <param name="packet"></param> 87 /// <param name="packet"></param>
78 public void LoadReceive(Packet packet, EndPoint epSender) 88 public void LoadReceive(Packet packet, EndPoint epSender)
79 { 89 {
80 m_chunksToLoad.Enqueue(new ChunkSenderTuple(packet.ToBytes(), epSender)); 90 LoadReceive(packet.ToBytes(), epSender);
81 } 91 }
82 92
83 /// <summary> 93 /// <summary>