diff options
author | UbitUmarov | 2019-01-26 16:42:42 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-26 16:42:42 +0000 |
commit | 695d807696709920eb12c2d4bd8af07af922566d (patch) | |
tree | d2ef87a97b3505895e79387eb176fde7c373e630 /OpenSim/Region/ClientStack/Linden/Caps/EventQueue | |
parent | ok i said all ( lie ) (diff) | |
download | opensim-SC-695d807696709920eb12c2d4bd8af07af922566d.zip opensim-SC-695d807696709920eb12c2d4bd8af07af922566d.tar.gz opensim-SC-695d807696709920eb12c2d4bd8af07af922566d.tar.bz2 opensim-SC-695d807696709920eb12c2d4bd8af07af922566d.tar.xz |
change encoding of a few event caps messages
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/EventQueue')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index 4da4412..58860b0 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -499,6 +499,23 @@ namespace OpenSim.Region.ClientStack.Linden | |||
499 | Enqueue(item, avatarID); | 499 | Enqueue(item, avatarID); |
500 | } | 500 | } |
501 | */ | 501 | */ |
502 | public StringBuilder StartEvent(string eventName) | ||
503 | { | ||
504 | StringBuilder sb = new StringBuilder(256); | ||
505 | LLSDxmlEncode.AddMap(sb); | ||
506 | LLSDxmlEncode.AddElem("message", eventName, sb); | ||
507 | LLSDxmlEncode.AddMap("body", sb); | ||
508 | |||
509 | return sb; | ||
510 | } | ||
511 | |||
512 | public string EndEvent(StringBuilder sb) | ||
513 | { | ||
514 | LLSDxmlEncode.AddEndMap(sb); // close body | ||
515 | LLSDxmlEncode.AddEndMap(sb); // close event | ||
516 | return sb.ToString(); | ||
517 | } | ||
518 | |||
502 | public virtual void EnableSimulator(ulong handle, IPEndPoint endPoint, UUID avatarID, int regionSizeX, int regionSizeY) | 519 | public virtual void EnableSimulator(ulong handle, IPEndPoint endPoint, UUID avatarID, int regionSizeX, int regionSizeY) |
503 | { | 520 | { |
504 | if (DebugLevel > 0) | 521 | if (DebugLevel > 0) |