aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorAdam Frisby2009-05-11 19:23:51 +0000
committerAdam Frisby2009-05-11 19:23:51 +0000
commit6dcafec22d560c50625c8a391701606a1a0bb363 (patch)
tree6e0199901946f9a0b7a9797bbc85a30c2b094288 /OpenSim/Framework
parentAdd selling for $0 back to the sample economy module. This is disabled by (diff)
downloadopensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.zip
opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.tar.gz
opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.tar.bz2
opensim-SC_OLD-6dcafec22d560c50625c8a391701606a1a0bb363.tar.xz
* Implements IP and DNS based ban facilities to OpenSim.
* User interface is ... primitive at best right now. * Loads bans from bans.txt and region ban DB on startup, bans.txt is in the format of one per line. The following explains how they are read; DNS bans are in the form "somewhere.com" will block ANY matching domain (including "betasomewhere.com", "beta.somewhere.com", "somewhere.com.beta") - make sure to be reasonably specific in DNS bans. IP address bans match on first characters, so, "127.0.0.1" will ban only that address, "127.0.1" will ban "127.0.10.0" but "127.0.1." will ban only the "127.0.1.*" network
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Client/IClientCore.cs9
-rw-r--r--OpenSim/Framework/Client/IClientIPEndpoint.cs12
2 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Framework/Client/IClientCore.cs b/OpenSim/Framework/Client/IClientCore.cs
index 78f0411..1d08fb9 100644
--- a/OpenSim/Framework/Client/IClientCore.cs
+++ b/OpenSim/Framework/Client/IClientCore.cs
@@ -25,11 +25,20 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using OpenMetaverse;
29
28namespace OpenSim.Framework.Client 30namespace OpenSim.Framework.Client
29{ 31{
30 public interface IClientCore 32 public interface IClientCore
31 { 33 {
32 bool TryGet<T>(out T iface); 34 bool TryGet<T>(out T iface);
33 T Get<T>(); 35 T Get<T>();
36
37 // Basic Interfaces
38 UUID AgentId { get; }
39
40 void Disconnect(string reason);
41 void Disconnect();
42
34 } 43 }
35} \ No newline at end of file 44} \ No newline at end of file
diff --git a/OpenSim/Framework/Client/IClientIPEndpoint.cs b/OpenSim/Framework/Client/IClientIPEndpoint.cs
new file mode 100644
index 0000000..b80dea5
--- /dev/null
+++ b/OpenSim/Framework/Client/IClientIPEndpoint.cs
@@ -0,0 +1,12 @@
1using System;
2using System.Collections.Generic;
3using System.Net;
4using System.Text;
5
6namespace OpenSim.Framework.Client
7{
8 public interface IClientIPEndpoint
9 {
10 IPAddress EndPoint { get; }
11 }
12}