aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/OpenSimClient.cs
diff options
context:
space:
mode:
authorgareth2007-03-02 23:23:27 +0000
committergareth2007-03-02 23:23:27 +0000
commit0227f31cdd29633dd6eefc88228bf69611b8d765 (patch)
treee9b337486411ee8e33be2db3973b318c45643a21 /src/OpenSimClient.cs
parentBegan implementing basic physics engine plugin framework (diff)
downloadopensim-SC-0227f31cdd29633dd6eefc88228bf69611b8d765.zip
opensim-SC-0227f31cdd29633dd6eefc88228bf69611b8d765.tar.gz
opensim-SC-0227f31cdd29633dd6eefc88228bf69611b8d765.tar.bz2
opensim-SC-0227f31cdd29633dd6eefc88228bf69611b8d765.tar.xz
Implemented logouts (so you can logout and then return later! woohoo)
Diffstat (limited to 'src/OpenSimClient.cs')
-rw-r--r--src/OpenSimClient.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs
index 83d8599..47f6dbf 100644
--- a/src/OpenSimClient.cs
+++ b/src/OpenSimClient.cs
@@ -150,6 +150,18 @@ namespace OpenSim
150 Thread AssetLoaderThread = new Thread(new ThreadStart(AssetLoader)); 150 Thread AssetLoaderThread = new Thread(new ThreadStart(AssetLoader));
151 AssetLoaderThread.Start(); 151 AssetLoaderThread.Start();
152 break; 152 break;
153 case PacketType.LogoutRequest:
154 Console.WriteLine("OpenSimClient.cs:ProcessInPacket() - Got a logout request");
155 OpenSim_Main.local_world.Entities.Remove(this.AgentID);
156 WebRequest DeleteSession = WebRequest.Create(OpenSim_Main.cfg.GridURL + "/usersessions/" + OpenSim_Main.cfg.GridSendKey + "/" + this.AgentID.ToString() + this.CircuitCode.ToString() + "/delete");
157 WebResponse GridResponse = DeleteSession.GetResponse();
158 StreamReader sr = new StreamReader(GridResponse.GetResponseStream());
159 String grTest = sr.ReadLine();
160 sr.Close();
161 GridResponse.Close();
162
163 this.ClientThread.Abort();
164 break;
153 } 165 }
154 } 166 }
155 167