You put your login in, you make your client log out, login, logout, it all works

Do the ogs-cs and turn around
That's what it's all about
ogs-cs
gareth 2007-03-14 03:22:48 +00:00
parent 5c027bc512
commit 2afbb98709
11 changed files with 28 additions and 18 deletions

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-simconfig")] [assembly: AssemblyTitleAttribute("opensim-simconfig")]
[assembly: AssemblyDescriptionAttribute("The default configuration handler")] [assembly: AssemblyDescriptionAttribute("The default configuration handler")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-gridinterfaces")] [assembly: AssemblyTitleAttribute("opensim-gridinterfaces")]
[assembly: AssemblyDescriptionAttribute("Definitions for OGS interface")] [assembly: AssemblyDescriptionAttribute("Definitions for OGS interface")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-localservers")] [assembly: AssemblyTitleAttribute("opensim-localservers")]
[assembly: AssemblyDescriptionAttribute("local grid servers")] [assembly: AssemblyDescriptionAttribute("local grid servers")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-localstorage")] [assembly: AssemblyTitleAttribute("opensim-localstorage")]
[assembly: AssemblyDescriptionAttribute("The local storage handler")] [assembly: AssemblyDescriptionAttribute("The local storage handler")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-remoteservers")] [assembly: AssemblyTitleAttribute("opensim-remoteservers")]
[assembly: AssemblyDescriptionAttribute("Connects to remote OGS installation")] [assembly: AssemblyDescriptionAttribute("Connects to remote OGS installation")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -112,10 +112,18 @@ namespace RemoteGridServers
public bool LogoutSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) public bool LogoutSession(LLUUID sessionID, LLUUID agentID, uint circuitCode)
{ {
WebRequest DeleteSession = WebRequest.Create(RemoteUrl + "/usersessions/" + sessionID.ToString()); WebRequest DeleteSession = WebRequest.Create(GridServerUrl + "/usersessions/" + sessionID.ToString());
DeleteSession.Method="DELETE"; DeleteSession.Method="DELETE";
WebResponse GridResponse = DeleteSession.GetResponse(); DeleteSession.ContentType="text/plaintext";
GridResponse.Close(); DeleteSession.ContentLength=0;
StreamWriter stOut = new StreamWriter (DeleteSession.GetRequestStream(), System.Text.Encoding.ASCII);
stOut.Write("");
stOut.Close();
StreamReader stIn = new StreamReader(DeleteSession.GetResponse().GetResponseStream());
string GridResponse = stIn.ReadToEnd();
stIn.Close();
return(true); return(true);
} }

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-serverconsole")] [assembly: AssemblyTitleAttribute("opensim-serverconsole")]
[assembly: AssemblyDescriptionAttribute("The default server console")] [assembly: AssemblyDescriptionAttribute("The default server console")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -32,6 +32,6 @@ namespace OpenSim
/// </summary> /// </summary>
public class VersionInfo public class VersionInfo
{ {
public static string Version = "0.1, Build 1173837399, Revision 202M"; public static string Version = "0.1, Build 1173838662, Revision 204M";
} }
} }

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-physicsmanager")] [assembly: AssemblyTitleAttribute("opensim-physicsmanager")]
[assembly: AssemblyDescriptionAttribute("Handles physics plugins")] [assembly: AssemblyDescriptionAttribute("Handles physics plugins")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: CLSCompliantAttribute(false)] [assembly: CLSCompliantAttribute(false)]
[assembly: AssemblyVersionAttribute("0.1.*.202")] [assembly: AssemblyVersionAttribute("0.1.*.204")]
[assembly: AssemblyTitleAttribute("opensim-physicsmanager-physx")] [assembly: AssemblyTitleAttribute("opensim-physicsmanager-physx")]
[assembly: AssemblyDescriptionAttribute("PhysX plugin for OpenSim")] [assembly: AssemblyDescriptionAttribute("PhysX plugin for OpenSim")]
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")] [assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]

View File

@ -215,12 +215,14 @@ namespace OpenGridServices
} }
static string ParseREST(HttpListenerRequest www_req) { static string ParseREST(HttpListenerRequest www_req) {
Console.WriteLine("INCOMING REST - " + www_req.RawUrl);
string[] rest_params = www_req.RawUrl.Split('/'); char[] splitter = {'/'};
string req_type = rest_params[0]; // First part of the URL is the type of request - usersessions/userprofiles/inventory/blabla string[] rest_params = www_req.RawUrl.Split(splitter);
string req_type = rest_params[1]; // First part of the URL is the type of request - usersessions/userprofiles/inventory/blabla
switch(req_type) { switch(req_type) {
case "usersessions": case "usersessions":
LLUUID sessionid = new LLUUID(rest_params[1]); // get usersessions/sessionid LLUUID sessionid = new LLUUID(rest_params[2]); // get usersessions/sessionid
if(www_req.HttpMethod=="DELETE") { if(www_req.HttpMethod=="DELETE") {
foreach (libsecondlife.LLUUID UUID in OpenUser_Main.userserver._profilemanager.UserProfiles.Keys) { foreach (libsecondlife.LLUUID UUID in OpenUser_Main.userserver._profilemanager.UserProfiles.Keys) {
if(OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].CurrentSessionID==sessionid) { if(OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].CurrentSessionID==sessionid) {
@ -265,9 +267,9 @@ namespace OpenGridServices
response.AddHeader("Content-type","text/xml"); response.AddHeader("Content-type","text/xml");
break; break;
case null: case "text/plaintext":
// must be REST or invalid crap, so pass to the REST parser
responseString=ParseREST(request); responseString=ParseREST(request);
response.AddHeader("Content-type","text/plaintext");
break; break;
} }