diff options
author | MW | 2007-03-15 10:14:12 +0000 |
---|---|---|
committer | MW | 2007-03-15 10:14:12 +0000 |
commit | 8d1e9f83f338de21482547816834f4535cebf5bc (patch) | |
tree | b09bb3a9e1ba4eff9032929b0c3b99cbe08b9965 /src/LocalServers/LocalGridServers/LocalGrid.cs | |
parent | Added simple mono/nant instructions (diff) | |
download | opensim-SC-8d1e9f83f338de21482547816834f4535cebf5bc.zip opensim-SC-8d1e9f83f338de21482547816834f4535cebf5bc.tar.gz opensim-SC-8d1e9f83f338de21482547816834f4535cebf5bc.tar.bz2 opensim-SC-8d1e9f83f338de21482547816834f4535cebf5bc.tar.xz |
Cleaned up IGridServer interfaces.
Added a try/catch around the http server Startup
Diffstat (limited to 'src/LocalServers/LocalGridServers/LocalGrid.cs')
-rw-r--r-- | src/LocalServers/LocalGridServers/LocalGrid.cs | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/LocalServers/LocalGridServers/LocalGrid.cs b/src/LocalServers/LocalGridServers/LocalGrid.cs index 86a68d5..32ed113 100644 --- a/src/LocalServers/LocalGridServers/LocalGrid.cs +++ b/src/LocalServers/LocalGridServers/LocalGrid.cs | |||
@@ -110,28 +110,26 @@ namespace LocalGridServers | |||
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||
113 | public class LocalGridServer :IGridServer | 113 | public class LocalGridServer : LocalGridBase |
114 | { | 114 | { |
115 | public List<Login> Sessions = new List<Login>(); | 115 | public List<Login> Sessions = new List<Login>(); |
116 | 116 | ||
117 | private Dictionary<uint, agentcircuitdata> AgentCircuits = new Dictionary<uint, agentcircuitdata>(); | ||
118 | |||
119 | public Dictionary<uint, agentcircuitdata> agentcircuits { | ||
120 | get {return agentcircuits;} | ||
121 | set {agentcircuits=value;} | ||
122 | } | ||
123 | |||
124 | public LocalGridServer() | 117 | public LocalGridServer() |
125 | { | 118 | { |
126 | Sessions = new List<Login>(); | 119 | Sessions = new List<Login>(); |
127 | ServerConsole.MainConsole.Instance.WriteLine("Local Grid Server class created"); | 120 | ServerConsole.MainConsole.Instance.WriteLine("Local Grid Server class created"); |
128 | } | 121 | } |
129 | 122 | ||
130 | public bool RequestConnection() | 123 | public override string GetName() |
124 | { | ||
125 | return "Local"; | ||
126 | } | ||
127 | |||
128 | public override bool RequestConnection() | ||
131 | { | 129 | { |
132 | return true; | 130 | return true; |
133 | } | 131 | } |
134 | public AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) | 132 | public override AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) |
135 | { | 133 | { |
136 | //we are running local | 134 | //we are running local |
137 | AuthenticateResponse user = new AuthenticateResponse(); | 135 | AuthenticateResponse user = new AuthenticateResponse(); |
@@ -151,31 +149,32 @@ namespace LocalGridServers | |||
151 | return(user); | 149 | return(user); |
152 | } | 150 | } |
153 | 151 | ||
154 | public bool LogoutSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) | 152 | public override bool LogoutSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) |
155 | { | 153 | { |
156 | return(true); | 154 | return(true); |
157 | } | 155 | } |
158 | 156 | ||
159 | public UUIDBlock RequestUUIDBlock() | 157 | public override UUIDBlock RequestUUIDBlock() |
160 | { | 158 | { |
161 | UUIDBlock uuidBlock = new UUIDBlock(); | 159 | UUIDBlock uuidBlock = new UUIDBlock(); |
162 | return(uuidBlock); | 160 | return(uuidBlock); |
163 | } | 161 | } |
164 | 162 | ||
165 | public void RequestNeighbours() | 163 | public override void RequestNeighbours() |
166 | { | 164 | { |
167 | return; | 165 | return; |
168 | } | 166 | } |
169 | 167 | ||
170 | public void SetServerInfo(string ServerUrl, string ServerKey) | 168 | public override void SetServerInfo(string ServerUrl, string ServerKey) |
171 | { | 169 | { |
172 | 170 | ||
173 | } | 171 | } |
172 | |||
174 | /// <summary> | 173 | /// <summary> |
175 | /// used by the local login server to inform us of new sessions | 174 | /// used by the local login server to inform us of new sessions |
176 | /// </summary> | 175 | /// </summary> |
177 | /// <param name="session"></param> | 176 | /// <param name="session"></param> |
178 | public void AddNewSession(Login session) | 177 | public override void AddNewSession(Login session) |
179 | { | 178 | { |
180 | lock(this.Sessions) | 179 | lock(this.Sessions) |
181 | { | 180 | { |