* Added conceptual LlsdMethod Demo to SimpleApp (work in progress)

This commit is contained in:
lbsa71
2007-07-02 20:44:39 +00:00
parent d1d38f2ede
commit 71f1b2d878
9 changed files with 378 additions and 279 deletions

View File

@@ -17,6 +17,7 @@ using OpenSim.Region.ClientStack;
using System.Net;
using libsecondlife.Packets;
using OpenSim.Physics.Manager;
using OpenSim.Region.Capabilities;
namespace SimpleApp
{
@@ -63,6 +64,7 @@ namespace SimpleApp
udpServer.LocalWorld = world;
httpServer.AddXmlRPCHandler("login_to_simulator", communicationsManager.UserServices.XmlRpcLoginMethod );
httpServer.AddLlsdMethod<LLSDMapLayerResponse, LLSDMapRequest>("/Caps/test/", LlsdMethodDemo);
httpServer.Start();
m_log.WriteLine( LogPriority.NORMAL, "Press enter to quit.");
@@ -75,6 +77,11 @@ namespace SimpleApp
}
private LLSDMapLayerResponse LlsdMethodDemo(LLSDMapRequest request)
{
return new LLSDMapLayerResponse();
}
private bool AddNewSessionHandler(ulong regionHandle, Login loginData)
{
m_log.WriteLine(LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last);

View File

@@ -116,6 +116,12 @@
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\..\Capabilities\OpenSim.Region.Capabilities.csproj">
<Name>OpenSim.Region.Capabilities</Name>
<Project>{39038E85-0000-0000-0000-000000000000}</Project>
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\..\ClientStack\OpenSim.Region.ClientStack.csproj">
<Name>OpenSim.Region.ClientStack</Name>
<Project>{DC3698B2-0000-0000-0000-000000000000}</Project>

View File

@@ -27,6 +27,7 @@
<include name="../../../../bin/OpenSim.Framework.Servers.dll" />
<include name="../../../../bin/OpenSim.Framework.UserManagement.dll" />
<include name="../../../../bin/OpenSim.Region.Caches.dll" />
<include name="../../../../bin/OpenSim.Region.Capabilities.dll" />
<include name="../../../../bin/OpenSim.Region.ClientStack.dll" />
<include name="../../../../bin/OpenSim.Region.Communications.Local.dll" />
<include name="../../../../bin/OpenSim.Region.Environment.dll" />