aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcaphttpsender.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llcaphttpsender.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llcaphttpsender.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/linden/indra/newview/llcaphttpsender.cpp b/linden/indra/newview/llcaphttpsender.cpp
new file mode 100644
index 0000000..cea8198
--- /dev/null
+++ b/linden/indra/newview/llcaphttpsender.cpp
@@ -0,0 +1,50 @@
1/**
2 * @file llcaphttpsender.cpp
3 * @brief Abstracts details of sending messages via UntrustedMessage cap.
4 *
5 * Copyright (c) 2007-2007, Linden Research, Inc.
6 *
7 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29#include "llviewerprecompiledheaders.h"
30
31#include "linden_common.h"
32#include "llcaphttpsender.h"
33
34LLCapHTTPSender::LLCapHTTPSender(const std::string& cap) :
35 mCap(cap)
36{
37}
38
39//virtual
40void LLCapHTTPSender::send(const LLHost& host, const char* message,
41 const LLSD& body,
42 LLHTTPClient::ResponderPtr response) const
43{
44 llinfos << "LLCapHTTPSender::send: message " << message
45 << " to host " << host << llendl;
46 LLSD llsd;
47 llsd["message"] = message;
48 llsd["body"] = body;
49 LLHTTPClient::post(mCap, llsd, response);
50}