From db2c4ab94cc40bf16910806fd4fe0d9a2b7cbd8f Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Sun, 31 May 2009 16:26:18 +0000
Subject: Update svn properties.
---
.../InternetRelayClientView/Server/IRCServer.cs | 122 ++++++++++-----------
1 file changed, 61 insertions(+), 61 deletions(-)
(limited to 'OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCServer.cs')
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCServer.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCServer.cs
index b8f5afa..612ac48 100644
--- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCServer.cs
+++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCServer.cs
@@ -1,61 +1,61 @@
-using System;
-using System.Collections.Generic;
-using System.Net;
-using System.Net.Sockets;
-using System.Reflection;
-using System.Text;
-using System.Threading;
-using log4net;
-using OpenSim.Region.Framework.Scenes;
-
-namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
-{
- public delegate void OnNewIRCUserDelegate(IRCClientView user);
-
- ///
- /// Adam's completely hacked up not-probably-compliant RFC1459 server class.
- ///
- class IRCServer
- {
- private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
-
- public event OnNewIRCUserDelegate OnNewIRCClient;
-
- private readonly TcpListener m_listener;
- private readonly Scene m_baseScene;
- private bool m_running = true;
-
- public IRCServer(IPAddress listener, int port, Scene baseScene)
- {
- m_listener = new TcpListener(listener, port);
-
- m_listener.Start(50);
-
- Thread thread = new Thread(ListenLoop);
- thread.Start();
- m_baseScene = baseScene;
- }
-
- public void Stop()
- {
- m_running = false;
- m_listener.Stop();
- }
-
- private void ListenLoop()
- {
- while(m_running)
- {
- AcceptClient(m_listener.AcceptTcpClient());
- }
- }
-
- private void AcceptClient(TcpClient client)
- {
- IRCClientView cv = new IRCClientView(client, m_baseScene);
-
- if (OnNewIRCClient != null)
- OnNewIRCClient(cv);
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Net;
+using System.Net.Sockets;
+using System.Reflection;
+using System.Text;
+using System.Threading;
+using log4net;
+using OpenSim.Region.Framework.Scenes;
+
+namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
+{
+ public delegate void OnNewIRCUserDelegate(IRCClientView user);
+
+ ///
+ /// Adam's completely hacked up not-probably-compliant RFC1459 server class.
+ ///
+ class IRCServer
+ {
+ private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
+
+ public event OnNewIRCUserDelegate OnNewIRCClient;
+
+ private readonly TcpListener m_listener;
+ private readonly Scene m_baseScene;
+ private bool m_running = true;
+
+ public IRCServer(IPAddress listener, int port, Scene baseScene)
+ {
+ m_listener = new TcpListener(listener, port);
+
+ m_listener.Start(50);
+
+ Thread thread = new Thread(ListenLoop);
+ thread.Start();
+ m_baseScene = baseScene;
+ }
+
+ public void Stop()
+ {
+ m_running = false;
+ m_listener.Stop();
+ }
+
+ private void ListenLoop()
+ {
+ while(m_running)
+ {
+ AcceptClient(m_listener.AcceptTcpClient());
+ }
+ }
+
+ private void AcceptClient(TcpClient client)
+ {
+ IRCClientView cv = new IRCClientView(client, m_baseScene);
+
+ if (OnNewIRCClient != null)
+ OnNewIRCClient(cv);
+ }
+ }
+}
--
cgit v1.1