diff options
author | Adam Frisby | 2009-05-30 03:53:04 +0000 |
---|---|---|
committer | Adam Frisby | 2009-05-30 03:53:04 +0000 |
commit | 29bc2962adc2b0a297bb2c2eb70b5261d7cafc70 (patch) | |
tree | 6dd5bf8d920d0fa5d32cea0827ea94a2b6306282 /OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs | |
parent | * May partially implement a C# IRCd & IRCClientStack. (diff) | |
download | opensim-SC_OLD-29bc2962adc2b0a297bb2c2eb70b5261d7cafc70.zip opensim-SC_OLD-29bc2962adc2b0a297bb2c2eb70b5261d7cafc70.tar.gz opensim-SC_OLD-29bc2962adc2b0a297bb2c2eb70b5261d7cafc70.tar.bz2 opensim-SC_OLD-29bc2962adc2b0a297bb2c2eb70b5261d7cafc70.tar.xz |
* More IRCClientView fiddling. Now implements IClientAPI & IClientCore.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs index c182445..1c23c66 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs | |||
@@ -1,39 +1,48 @@ | |||
1 | using System; | 1 | using System.Net; |
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using Nini.Config; | 2 | using Nini.Config; |
5 | using OpenSim.Region.Framework.Interfaces; | 3 | using OpenSim.Region.Framework.Interfaces; |
6 | using OpenSim.Region.Framework.Scenes; | 4 | using OpenSim.Region.Framework.Scenes; |
5 | using OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server; | ||
7 | 6 | ||
8 | namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView | 7 | namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView |
9 | { | 8 | { |
10 | class IRCStackModule : IRegionModule | 9 | class IRCStackModule : IRegionModule |
11 | { | 10 | { |
11 | private IRCServer m_server; | ||
12 | private Scene m_scene; | ||
13 | |||
12 | #region Implementation of IRegionModule | 14 | #region Implementation of IRegionModule |
13 | 15 | ||
14 | public void Initialise(Scene scene, IConfigSource source) | 16 | public void Initialise(Scene scene, IConfigSource source) |
15 | { | 17 | { |
16 | throw new System.NotImplementedException(); | 18 | m_scene = scene; |
19 | m_server = new IRCServer(IPAddress.Parse("0.0.0.0"),6666, scene); | ||
20 | m_server.OnNewIRCClient += m_server_OnNewIRCClient; | ||
21 | } | ||
22 | |||
23 | void m_server_OnNewIRCClient(IRCClientView user) | ||
24 | { | ||
25 | m_scene.AddNewClient(user); | ||
17 | } | 26 | } |
18 | 27 | ||
19 | public void PostInitialise() | 28 | public void PostInitialise() |
20 | { | 29 | { |
21 | throw new System.NotImplementedException(); | 30 | |
22 | } | 31 | } |
23 | 32 | ||
24 | public void Close() | 33 | public void Close() |
25 | { | 34 | { |
26 | throw new System.NotImplementedException(); | 35 | |
27 | } | 36 | } |
28 | 37 | ||
29 | public string Name | 38 | public string Name |
30 | { | 39 | { |
31 | get { throw new System.NotImplementedException(); } | 40 | get { return "IRCClientStackModule"; } |
32 | } | 41 | } |
33 | 42 | ||
34 | public bool IsSharedModule | 43 | public bool IsSharedModule |
35 | { | 44 | { |
36 | get { throw new System.NotImplementedException(); } | 45 | get { return false; } |
37 | } | 46 | } |
38 | 47 | ||
39 | #endregion | 48 | #endregion |