diff options
author | lbsa71 | 2007-10-31 07:28:23 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-31 07:28:23 +0000 |
commit | 064404ab409ddd0a3b25027a98582696295c46fd (patch) | |
tree | bd84ec2e23930f76e7cc81c8529ef71936c86dd9 /OpenSim/Framework/General/NetworkServersInfo.cs | |
parent | made illogical bitwise operations logical (diff) | |
download | opensim-SC_OLD-064404ab409ddd0a3b25027a98582696295c46fd.zip opensim-SC_OLD-064404ab409ddd0a3b25027a98582696295c46fd.tar.gz opensim-SC_OLD-064404ab409ddd0a3b25027a98582696295c46fd.tar.bz2 opensim-SC_OLD-064404ab409ddd0a3b25027a98582696295c46fd.tar.xz |
* Moved OpenSim/Framework/General to OpenSim/Framework for great justice.
Diffstat (limited to 'OpenSim/Framework/General/NetworkServersInfo.cs')
-rw-r--r-- | OpenSim/Framework/General/NetworkServersInfo.cs | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/OpenSim/Framework/General/NetworkServersInfo.cs b/OpenSim/Framework/General/NetworkServersInfo.cs deleted file mode 100644 index b9ce143..0000000 --- a/OpenSim/Framework/General/NetworkServersInfo.cs +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | |||
29 | using Nini.Config; | ||
30 | |||
31 | namespace OpenSim.Framework | ||
32 | { | ||
33 | public class NetworkServersInfo | ||
34 | { | ||
35 | public string AssetURL = "http://127.0.0.1:" + AssetConfig.DefaultHttpPort.ToString() + "/"; | ||
36 | public string AssetSendKey = ""; | ||
37 | |||
38 | public string GridURL = ""; | ||
39 | public string GridSendKey = ""; | ||
40 | public string GridRecvKey = ""; | ||
41 | public string UserURL = ""; | ||
42 | public string UserSendKey = ""; | ||
43 | public string UserRecvKey = ""; | ||
44 | public bool isSandbox; | ||
45 | |||
46 | public string InventoryURL = ""; | ||
47 | |||
48 | public static int DefaultHttpListenerPort = 9000; | ||
49 | public int HttpListenerPort = DefaultHttpListenerPort; | ||
50 | |||
51 | public static int RemotingListenerPort = 8895; | ||
52 | |||
53 | |||
54 | public NetworkServersInfo() | ||
55 | { | ||
56 | } | ||
57 | |||
58 | public NetworkServersInfo(uint defaultHomeLocX, uint defaultHomeLocY) | ||
59 | { | ||
60 | m_defaultHomeLocX = defaultHomeLocX; | ||
61 | m_defaultHomeLocY = defaultHomeLocY; | ||
62 | } | ||
63 | |||
64 | private uint? m_defaultHomeLocX; | ||
65 | |||
66 | public uint DefaultHomeLocX | ||
67 | { | ||
68 | get { return m_defaultHomeLocX.Value; } | ||
69 | } | ||
70 | |||
71 | private uint? m_defaultHomeLocY; | ||
72 | |||
73 | public uint DefaultHomeLocY | ||
74 | { | ||
75 | get { return m_defaultHomeLocY.Value; } | ||
76 | } | ||
77 | |||
78 | public void loadFromConfiguration(IConfigSource config) | ||
79 | { | ||
80 | m_defaultHomeLocX = (uint) config.Configs["StandAlone"].GetInt("default_location_x", 1000); | ||
81 | m_defaultHomeLocY = (uint) config.Configs["StandAlone"].GetInt("default_location_y", 1000); | ||
82 | |||
83 | HttpListenerPort = config.Configs["Network"].GetInt("http_listener_port", DefaultHttpListenerPort); | ||
84 | RemotingListenerPort = config.Configs["Network"].GetInt("remoting_listener_port", RemotingListenerPort); | ||
85 | GridURL = | ||
86 | config.Configs["Network"].GetString("grid_server_url", | ||
87 | "http://127.0.0.1:" + GridConfig.DefaultHttpPort.ToString()); | ||
88 | GridSendKey = config.Configs["Network"].GetString("grid_send_key", "null"); | ||
89 | GridRecvKey = config.Configs["Network"].GetString("grid_recv_key", "null"); | ||
90 | UserURL = | ||
91 | config.Configs["Network"].GetString("user_server_url", | ||
92 | "http://127.0.0.1:" + UserConfig.DefaultHttpPort.ToString()); | ||
93 | UserSendKey = config.Configs["Network"].GetString("user_send_key", "null"); | ||
94 | UserRecvKey = config.Configs["Network"].GetString("user_recv_key", "null"); | ||
95 | AssetURL = config.Configs["Network"].GetString("asset_server_url", AssetURL); | ||
96 | InventoryURL = config.Configs["Network"].GetString("inventory_server_url", | ||
97 | "http://127.0.0.1:" + InventoryConfig.DefaultHttpPort.ToString()); | ||
98 | } | ||
99 | } | ||
100 | } | ||