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 aboutogs-cs
parent
5c027bc512
commit
2afbb98709
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-simconfig")]
|
||||
[assembly: AssemblyDescriptionAttribute("The default configuration handler")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-gridinterfaces")]
|
||||
[assembly: AssemblyDescriptionAttribute("Definitions for OGS interface")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-localservers")]
|
||||
[assembly: AssemblyDescriptionAttribute("local grid servers")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-localstorage")]
|
||||
[assembly: AssemblyDescriptionAttribute("The local storage handler")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-remoteservers")]
|
||||
[assembly: AssemblyDescriptionAttribute("Connects to remote OGS installation")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -112,10 +112,18 @@ namespace RemoteGridServers
|
|||
|
||||
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";
|
||||
WebResponse GridResponse = DeleteSession.GetResponse();
|
||||
GridResponse.Close();
|
||||
DeleteSession.ContentType="text/plaintext";
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-serverconsole")]
|
||||
[assembly: AssemblyDescriptionAttribute("The default server console")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -32,6 +32,6 @@ namespace OpenSim
|
|||
/// </summary>
|
||||
public class VersionInfo
|
||||
{
|
||||
public static string Version = "0.1, Build 1173837399, Revision 202M";
|
||||
public static string Version = "0.1, Build 1173838662, Revision 204M";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-physicsmanager")]
|
||||
[assembly: AssemblyDescriptionAttribute("Handles physics plugins")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
[assembly: CLSCompliantAttribute(false)]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.202")]
|
||||
[assembly: AssemblyVersionAttribute("0.1.*.204")]
|
||||
[assembly: AssemblyTitleAttribute("opensim-physicsmanager-physx")]
|
||||
[assembly: AssemblyDescriptionAttribute("PhysX plugin for OpenSim")]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright © OGS development team 2007")]
|
||||
|
|
|
@ -215,12 +215,14 @@ namespace OpenGridServices
|
|||
}
|
||||
|
||||
static string ParseREST(HttpListenerRequest www_req) {
|
||||
|
||||
string[] rest_params = www_req.RawUrl.Split('/');
|
||||
string req_type = rest_params[0]; // First part of the URL is the type of request - usersessions/userprofiles/inventory/blabla
|
||||
Console.WriteLine("INCOMING REST - " + www_req.RawUrl);
|
||||
|
||||
char[] splitter = {'/'};
|
||||
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) {
|
||||
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") {
|
||||
foreach (libsecondlife.LLUUID UUID in OpenUser_Main.userserver._profilemanager.UserProfiles.Keys) {
|
||||
if(OpenUser_Main.userserver._profilemanager.UserProfiles[UUID].CurrentSessionID==sessionid) {
|
||||
|
@ -265,9 +267,9 @@ namespace OpenGridServices
|
|||
response.AddHeader("Content-type","text/xml");
|
||||
break;
|
||||
|
||||
case null:
|
||||
// must be REST or invalid crap, so pass to the REST parser
|
||||
case "text/plaintext":
|
||||
responseString=ParseREST(request);
|
||||
response.AddHeader("Content-type","text/plaintext");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue