aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-16 19:50:12 +0000
committerJustin Clarke Casey2008-10-16 19:50:12 +0000
commit82b7374ed293d6ec3449922625e6c1e2e34cc5c5 (patch)
tree14fc456ad5487db01011f0f95c61e8e2112f64d4 /OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
parent- Removed debug print method (diff)
downloadopensim-SC_OLD-82b7374ed293d6ec3449922625e6c1e2e34cc5c5.zip
opensim-SC_OLD-82b7374ed293d6ec3449922625e6c1e2e34cc5c5.tar.gz
opensim-SC_OLD-82b7374ed293d6ec3449922625e6c1e2e34cc5c5.tar.bz2
opensim-SC_OLD-82b7374ed293d6ec3449922625e6c1e2e34cc5c5.tar.xz
* minor: get rid of pointless ipeSender
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 4abc0f7..20452e0 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -56,10 +56,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
56 protected IPEndPoint ServerIncoming; 56 protected IPEndPoint ServerIncoming;
57 protected byte[] RecvBuffer = new byte[4096]; 57 protected byte[] RecvBuffer = new byte[4096];
58 protected byte[] ZeroBuffer = new byte[8192]; 58 protected byte[] ZeroBuffer = new byte[8192];
59 protected IPEndPoint ipeSender;
60 59
61 /// <value> 60 /// <value>
62 /// The endpoint of a sender of a particular packet. The port is continually changed by the various socket receive methods 61 /// The endpoint of a sender of a particular packet. The port is changed by the various socket receive methods
63 /// </value> 62 /// </value>
64 protected EndPoint epSender; 63 protected EndPoint epSender;
65 64
@@ -176,8 +175,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
176 /// <param name="result"></param> 175 /// <param name="result"></param>
177 protected virtual void OnReceivedData(IAsyncResult result) 176 protected virtual void OnReceivedData(IAsyncResult result)
178 { 177 {
179 ipeSender = new IPEndPoint(listenIP, 0); 178 epSender = new IPEndPoint(listenIP, 0);
180 epSender = ipeSender;
181 Packet packet = null; 179 Packet packet = null;
182 180
183 int numBytes = 1; 181 int numBytes = 1;
@@ -418,8 +416,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
418 416
419 m_log.Info("[UDPSERVER]: UDP socket bound, getting ready to listen"); 417 m_log.Info("[UDPSERVER]: UDP socket bound, getting ready to listen");
420 418
421 ipeSender = new IPEndPoint(listenIP, 0); 419 epSender = new IPEndPoint(listenIP, 0);
422 epSender = ipeSender;
423 ReceivedData = OnReceivedData; 420 ReceivedData = OnReceivedData;
424 m_socket.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); 421 m_socket.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);
425 422