aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Servers/UDPServerBase.cs
diff options
context:
space:
mode:
authorMW2007-05-19 18:32:01 +0000
committerMW2007-05-19 18:32:01 +0000
commit274ce6987e0b017800ddb62fe65143e0d5e1cae5 (patch)
tree4842cdbb9e209451136b1ab9149da5d5dd84db70 /OpenSim.Servers/UDPServerBase.cs
parent(no commit message) (diff)
downloadopensim-SC_OLD-274ce6987e0b017800ddb62fe65143e0d5e1cae5.zip
opensim-SC_OLD-274ce6987e0b017800ddb62fe65143e0d5e1cae5.tar.gz
opensim-SC_OLD-274ce6987e0b017800ddb62fe65143e0d5e1cae5.tar.bz2
opensim-SC_OLD-274ce6987e0b017800ddb62fe65143e0d5e1cae5.tar.xz
Border crossing back to mostly working, still seems a problem in that you need to stop walking just after you cross the border for it to work properly (else you will continue moving into a negative position in the first sim)
Diffstat (limited to '')
-rw-r--r--OpenSim.Servers/UDPServerBase.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenSim.Servers/UDPServerBase.cs b/OpenSim.Servers/UDPServerBase.cs
index e7feb01..a308052 100644
--- a/OpenSim.Servers/UDPServerBase.cs
+++ b/OpenSim.Servers/UDPServerBase.cs
@@ -24,8 +24,9 @@ namespace OpenSim.Servers
24 protected AsyncCallback ReceivedData; 24 protected AsyncCallback ReceivedData;
25 protected int listenPort; 25 protected int listenPort;
26 26
27 public UDPServerBase() 27 public UDPServerBase(int port)
28 { 28 {
29 listenPort = port;
29 } 30 }
30 31
31 protected virtual void OnReceivedData(IAsyncResult result) 32 protected virtual void OnReceivedData(IAsyncResult result)
@@ -38,8 +39,6 @@ namespace OpenSim.Servers
38 39
39 packet = Packet.BuildPacket(RecvBuffer, ref packetEnd, ZeroBuffer); 40 packet = Packet.BuildPacket(RecvBuffer, ref packetEnd, ZeroBuffer);
40 41
41
42
43 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); 42 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);
44 } 43 }
45 44
@@ -60,14 +59,10 @@ namespace OpenSim.Servers
60 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); 59 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);
61 } 60 }
62 61
63
64 public virtual void SendPacketTo(byte[] buffer, int size, SocketFlags flags, uint circuitcode) 62 public virtual void SendPacketTo(byte[] buffer, int size, SocketFlags flags, uint circuitcode)
65 { 63 {
66 // find the endpoint for this circuit
67 64
68 } 65 }
69
70
71 } 66 }
72} 67}
73 68