diff options
author | Adam Frisby | 2008-05-01 16:41:01 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 16:41:01 +0000 |
commit | fc6c4dc399587f6f920d3f0759b1bd7a8b9b4ac8 (patch) | |
tree | 90a4799fa43e3761ffbe669d1d87837933d8db53 /ThirdParty/3Di/LoadBalancer/TcpServer.cs | |
parent | * Deletes my EventReader ScriptRewriter. It isn't required to rewrite the sc... (diff) | |
download | opensim-SC-fc6c4dc399587f6f920d3f0759b1bd7a8b9b4ac8.zip opensim-SC-fc6c4dc399587f6f920d3f0759b1bd7a8b9b4ac8.tar.gz opensim-SC-fc6c4dc399587f6f920d3f0759b1bd7a8b9b4ac8.tar.bz2 opensim-SC-fc6c4dc399587f6f920d3f0759b1bd7a8b9b4ac8.tar.xz |
* Cleaning code still.
Diffstat (limited to 'ThirdParty/3Di/LoadBalancer/TcpServer.cs')
-rw-r--r-- | ThirdParty/3Di/LoadBalancer/TcpServer.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/ThirdParty/3Di/LoadBalancer/TcpServer.cs b/ThirdParty/3Di/LoadBalancer/TcpServer.cs index 9722a1b..cd94b95 100644 --- a/ThirdParty/3Di/LoadBalancer/TcpServer.cs +++ b/ThirdParty/3Di/LoadBalancer/TcpServer.cs | |||
@@ -37,15 +37,15 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer | |||
37 | { | 37 | { |
38 | public const int BufferSize = 2048; | 38 | public const int BufferSize = 2048; |
39 | public byte[] buffer = new byte[BufferSize]; | 39 | public byte[] buffer = new byte[BufferSize]; |
40 | public InternalPacketHeader header = null; | 40 | public InternalPacketHeader header; |
41 | public MemoryStream ms_ptr = new MemoryStream(); | 41 | public MemoryStream ms_ptr = new MemoryStream(); |
42 | public Socket workSocket = null; | 42 | public Socket workSocket; |
43 | } | 43 | } |
44 | 44 | ||
45 | public class AsynchronousSocketListener | 45 | public class AsynchronousSocketListener |
46 | { | 46 | { |
47 | public static ManualResetEvent allDone = new ManualResetEvent(false); | 47 | public static ManualResetEvent allDone = new ManualResetEvent(false); |
48 | public static string data = null; | 48 | public static string data; |
49 | 49 | ||
50 | #region KIRYU | 50 | #region KIRYU |
51 | 51 | ||
@@ -55,14 +55,10 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer | |||
55 | 55 | ||
56 | #endregion | 56 | #endregion |
57 | 57 | ||
58 | public static PacketRecieveHandler PacketHandler = null; | 58 | public static PacketRecieveHandler PacketHandler; |
59 | 59 | ||
60 | #endregion | 60 | #endregion |
61 | 61 | ||
62 | public AsynchronousSocketListener() | ||
63 | { | ||
64 | } | ||
65 | |||
66 | public static void StartListening(int port) | 62 | public static void StartListening(int port) |
67 | { | 63 | { |
68 | IPHostEntry ipHostInfo = Dns.GetHostEntry(Dns.GetHostName()); | 64 | IPHostEntry ipHostInfo = Dns.GetHostEntry(Dns.GetHostName()); |
@@ -199,7 +195,7 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer | |||
199 | 195 | ||
200 | public class TcpServer | 196 | public class TcpServer |
201 | { | 197 | { |
202 | private int mPort = 11000; | 198 | private readonly int mPort = 11000; |
203 | 199 | ||
204 | public TcpServer() | 200 | public TcpServer() |
205 | { | 201 | { |