diff options
author | lbsa71 | 2007-09-18 13:29:16 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-18 13:29:16 +0000 |
commit | 70d9cec3b5064d874f8b9622804c964beeac5f0d (patch) | |
tree | 29d4ae5a6082ea509f5c92a50582bd9b365c7a0f /OpenSim/Region/ClientStack/ClientView.cs | |
parent | * Handlerized ViewerEffect (diff) | |
download | opensim-SC-70d9cec3b5064d874f8b9622804c964beeac5f0d.zip opensim-SC-70d9cec3b5064d874f8b9622804c964beeac5f0d.tar.gz opensim-SC-70d9cec3b5064d874f8b9622804c964beeac5f0d.tar.bz2 opensim-SC-70d9cec3b5064d874f8b9622804c964beeac5f0d.tar.xz |
* Yet some more connectivity restructuring
* We now have CloseAllAgents( circuit ) and CloseAllCircuits( agentId ) for great justice ( but alas, still only closing on one single scene - be brave! )
* Login and ConnectionClosed now eventified and moveified awayified
* Killed off unused NullClientAPI
* Now the client is almost only responsible for its own closing. ( I will get that scene out of there )
* Lookin' good!
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index f8ac1d8..2341b7b 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -133,8 +133,6 @@ namespace OpenSim.Region.ClientStack | |||
133 | 133 | ||
134 | m_scene.RemoveClient(this.AgentId); | 134 | m_scene.RemoveClient(this.AgentId); |
135 | 135 | ||
136 | m_clientManager.Remove(this.CircuitCode); // TODO: Move out and delete ref to clientmanager. | ||
137 | m_networkServer.RemoveClientCircuit(this.CircuitCode); | ||
138 | this.ClientThread.Abort(); | 136 | this.ClientThread.Abort(); |
139 | } | 137 | } |
140 | 138 | ||
@@ -215,7 +213,7 @@ namespace OpenSim.Region.ClientStack | |||
215 | } else { | 213 | } else { |
216 | info = packet.Type.ToString(); | 214 | info = packet.Type.ToString(); |
217 | } | 215 | } |
218 | Console.WriteLine(CircuitCode + ":" + direction + ": " + info); | 216 | Console.WriteLine(m_circuitCode + ":" + direction + ": " + info); |
219 | } | 217 | } |
220 | } | 218 | } |
221 | 219 | ||
@@ -252,8 +250,10 @@ namespace OpenSim.Region.ClientStack | |||
252 | probesWithNoIngressPackets++; | 250 | probesWithNoIngressPackets++; |
253 | if (probesWithNoIngressPackets > 30) | 251 | if (probesWithNoIngressPackets > 30) |
254 | { | 252 | { |
255 | // Refactor out this into an OnConnectionClosed so the ClientManager can clean up | 253 | if( OnConnectionClosed != null ) |
256 | this.Close(); | 254 | { |
255 | OnConnectionClosed(this); | ||
256 | } | ||
257 | } | 257 | } |
258 | else | 258 | else |
259 | { | 259 | { |
@@ -283,7 +283,7 @@ namespace OpenSim.Region.ClientStack | |||
283 | 283 | ||
284 | protected virtual void AuthUser() | 284 | protected virtual void AuthUser() |
285 | { | 285 | { |
286 | // AuthenticateResponse sessionInfo = m_gridServer.AuthenticateSession(cirpack.CircuitCode.m_sessionId, cirpack.CircuitCode.ID, cirpack.CircuitCode.Code); | 286 | // AuthenticateResponse sessionInfo = m_gridServer.AuthenticateSession(cirpack.m_circuitCode.m_sessionId, cirpack.m_circuitCode.ID, cirpack.m_circuitCode.Code); |
287 | AuthenticateResponse sessionInfo = this.m_authenticateSessionsHandler.AuthenticateSession(cirpack.CircuitCode.SessionID, cirpack.CircuitCode.ID, cirpack.CircuitCode.Code); | 287 | AuthenticateResponse sessionInfo = this.m_authenticateSessionsHandler.AuthenticateSession(cirpack.CircuitCode.SessionID, cirpack.CircuitCode.ID, cirpack.CircuitCode.Code); |
288 | if (!sessionInfo.Authorised) | 288 | if (!sessionInfo.Authorised) |
289 | { | 289 | { |
@@ -297,7 +297,7 @@ namespace OpenSim.Region.ClientStack | |||
297 | //session is authorised | 297 | //session is authorised |
298 | m_agentId = cirpack.CircuitCode.ID; | 298 | m_agentId = cirpack.CircuitCode.ID; |
299 | this.m_sessionId = cirpack.CircuitCode.SessionID; | 299 | this.m_sessionId = cirpack.CircuitCode.SessionID; |
300 | this.CircuitCode = cirpack.CircuitCode.Code; | 300 | this.m_circuitCode = cirpack.CircuitCode.Code; |
301 | this.firstName = sessionInfo.LoginInfo.First; | 301 | this.firstName = sessionInfo.LoginInfo.First; |
302 | this.lastName = sessionInfo.LoginInfo.Last; | 302 | this.lastName = sessionInfo.LoginInfo.Last; |
303 | 303 | ||