aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Servers/UDPServerBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Servers/UDPServerBase.cs')
-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