aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/IInterregionComms.cs')
-rw-r--r--OpenSim/Region/Framework/Interfaces/IInterregionComms.cs81
1 files changed, 81 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs b/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs
new file mode 100644
index 0000000..783b3f9
--- /dev/null
+++ b/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs
@@ -0,0 +1,81 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using OpenSim.Framework;
30using OpenMetaverse;
31
32namespace OpenSim.Region.Framework.Interfaces
33{
34 public delegate bool ChildAgentUpdateReceived(AgentData data);
35
36 public interface IInterregionCommsOut
37 {
38 bool SendCreateChildAgent(ulong regionHandle, AgentCircuitData aCircuit);
39
40 /// <summary>
41 /// Full child agent update.
42 /// </summary>
43 /// <param name="regionHandle"></param>
44 /// <param name="data"></param>
45 /// <returns></returns>
46 bool SendChildAgentUpdate(ulong regionHandle, AgentData data);
47
48 /// <summary>
49 /// Short child agent update, mostly for position.
50 /// </summary>
51 /// <param name="regionHandle"></param>
52 /// <param name="data"></param>
53 /// <returns></returns>
54 bool SendChildAgentUpdate(ulong regionHandle, AgentPosition data);
55
56 /// <summary>
57 /// Message from receiving region to departing region, telling it got contacted by the client.
58 /// When sent over REST, it invokes the opaque uri.
59 /// </summary>
60 /// <param name="regionHandle"></param>
61 /// <param name="id"></param>
62 /// <param name="uri"></param>
63 /// <returns></returns>
64 bool SendReleaseAgent(ulong regionHandle, UUID id, string uri);
65
66 /// <summary>
67 /// Close agent.
68 /// </summary>
69 /// <param name="regionHandle"></param>
70 /// <param name="id"></param>
71 /// <returns></returns>
72 bool SendCloseAgent(ulong regionHandle, UUID id);
73 }
74
75 // This may not be needed, but having it here for now.
76 public interface IInterregionCommsIn
77 {
78 event ChildAgentUpdateReceived OnChildAgentUpdate;
79 }
80
81}