diff options
author | lbsa71 | 2007-07-02 20:44:39 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-02 20:44:39 +0000 |
commit | 71f1b2d87803e4fb3a0fb5a12d1e9a2f4287b6fa (patch) | |
tree | 295a9c854097b3be6d430a019cc2489e138ad93a /OpenSim/Region/Examples/SimpleApp/Program.cs | |
parent | Applied Darok's PhysicsVector ToString patch (diff) | |
download | opensim-SC_OLD-71f1b2d87803e4fb3a0fb5a12d1e9a2f4287b6fa.zip opensim-SC_OLD-71f1b2d87803e4fb3a0fb5a12d1e9a2f4287b6fa.tar.gz opensim-SC_OLD-71f1b2d87803e4fb3a0fb5a12d1e9a2f4287b6fa.tar.bz2 opensim-SC_OLD-71f1b2d87803e4fb3a0fb5a12d1e9a2f4287b6fa.tar.xz |
* Added conceptual LlsdMethod Demo to SimpleApp (work in progress)
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/Program.cs')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/Program.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs index 3d9dd0d..2c5fb4d 100644 --- a/OpenSim/Region/Examples/SimpleApp/Program.cs +++ b/OpenSim/Region/Examples/SimpleApp/Program.cs | |||
@@ -17,6 +17,7 @@ using OpenSim.Region.ClientStack; | |||
17 | using System.Net; | 17 | using System.Net; |
18 | using libsecondlife.Packets; | 18 | using libsecondlife.Packets; |
19 | using OpenSim.Physics.Manager; | 19 | using OpenSim.Physics.Manager; |
20 | using OpenSim.Region.Capabilities; | ||
20 | 21 | ||
21 | namespace SimpleApp | 22 | namespace SimpleApp |
22 | { | 23 | { |
@@ -63,6 +64,7 @@ namespace SimpleApp | |||
63 | udpServer.LocalWorld = world; | 64 | udpServer.LocalWorld = world; |
64 | 65 | ||
65 | httpServer.AddXmlRPCHandler("login_to_simulator", communicationsManager.UserServices.XmlRpcLoginMethod ); | 66 | httpServer.AddXmlRPCHandler("login_to_simulator", communicationsManager.UserServices.XmlRpcLoginMethod ); |
67 | httpServer.AddLlsdMethod<LLSDMapLayerResponse, LLSDMapRequest>("/Caps/test/", LlsdMethodDemo); | ||
66 | httpServer.Start(); | 68 | httpServer.Start(); |
67 | 69 | ||
68 | m_log.WriteLine( LogPriority.NORMAL, "Press enter to quit."); | 70 | m_log.WriteLine( LogPriority.NORMAL, "Press enter to quit."); |
@@ -75,6 +77,11 @@ namespace SimpleApp | |||
75 | 77 | ||
76 | } | 78 | } |
77 | 79 | ||
80 | private LLSDMapLayerResponse LlsdMethodDemo(LLSDMapRequest request) | ||
81 | { | ||
82 | return new LLSDMapLayerResponse(); | ||
83 | } | ||
84 | |||
78 | private bool AddNewSessionHandler(ulong regionHandle, Login loginData) | 85 | private bool AddNewSessionHandler(ulong regionHandle, Login loginData) |
79 | { | 86 | { |
80 | m_log.WriteLine(LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last); | 87 | m_log.WriteLine(LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last); |