aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
diff options
context:
space:
mode:
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