From dc2316de9c7a7168263e7a367b4c69189f9bc232 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 3 Feb 2007 21:09:54 +0000 Subject: Basic Inventory support and clean up --- Login_manager.cs | 59 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 27 deletions(-) (limited to 'Login_manager.cs') diff --git a/Login_manager.cs b/Login_manager.cs index c8251b6..dc90613 100644 --- a/Login_manager.cs +++ b/Login_manager.cs @@ -70,38 +70,43 @@ namespace OpenSim runLoginProxy.Start(); } - private void RunLoginProxy() { - try { - for (;;) { - Socket client = loginServer.Accept(); - IPEndPoint clientEndPoint = (IPEndPoint)client.RemoteEndPoint; + private void RunLoginProxy() + { + try + { + for (;;) + { + Socket client = loginServer.Accept(); + IPEndPoint clientEndPoint = (IPEndPoint)client.RemoteEndPoint; - - NetworkStream networkStream = new NetworkStream(client); - StreamReader networkReader = new StreamReader(networkStream); - StreamWriter networkWriter = new StreamWriter(networkStream); + + NetworkStream networkStream = new NetworkStream(client); + StreamReader networkReader = new StreamReader(networkStream); + StreamWriter networkWriter = new StreamWriter(networkStream); - try - { - ProxyLogin(networkReader, networkWriter); - } - catch (Exception e) - { - Console.WriteLine(e.Message); - } + try + { + ProxyLogin(networkReader, networkWriter); + } + catch (Exception e) + { + Console.WriteLine(e.Message); + } - networkWriter.Close(); - networkReader.Close(); - networkStream.Close(); + networkWriter.Close(); + networkReader.Close(); + networkStream.Close(); - client.Close(); + client.Close(); - // send any packets queued for injection - - } - } catch (Exception e) { - Console.WriteLine(e.Message); - Console.WriteLine(e.StackTrace); + // send any packets queued for injection + + } + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Console.WriteLine(e.StackTrace); } } -- cgit v1.1