From 20a9bf08f51351e1e0a9de94f184ff56cd572665 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 1 May 2008 18:04:42 +0000 Subject: * Rolled back a few changes. --- ThirdParty/3Di/LoadBalancer/TcpServer.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'ThirdParty/3Di/LoadBalancer/TcpServer.cs') diff --git a/ThirdParty/3Di/LoadBalancer/TcpServer.cs b/ThirdParty/3Di/LoadBalancer/TcpServer.cs index cd94b95..9722a1b 100644 --- a/ThirdParty/3Di/LoadBalancer/TcpServer.cs +++ b/ThirdParty/3Di/LoadBalancer/TcpServer.cs @@ -37,15 +37,15 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer { public const int BufferSize = 2048; public byte[] buffer = new byte[BufferSize]; - public InternalPacketHeader header; + public InternalPacketHeader header = null; public MemoryStream ms_ptr = new MemoryStream(); - public Socket workSocket; + public Socket workSocket = null; } public class AsynchronousSocketListener { public static ManualResetEvent allDone = new ManualResetEvent(false); - public static string data; + public static string data = null; #region KIRYU @@ -55,10 +55,14 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer #endregion - public static PacketRecieveHandler PacketHandler; + public static PacketRecieveHandler PacketHandler = null; #endregion + public AsynchronousSocketListener() + { + } + public static void StartListening(int port) { IPHostEntry ipHostInfo = Dns.GetHostEntry(Dns.GetHostName()); @@ -195,7 +199,7 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer public class TcpServer { - private readonly int mPort = 11000; + private int mPort = 11000; public TcpServer() { -- cgit v1.1