aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llsrv.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:59 -0500
committerJacek Antonelli2008-08-15 23:44:59 -0500
commita408bac29378072fbf36864164149458c978cfcc (patch)
tree67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llsrv.h
parentSecond Life viewer sources 1.17.0.12 (diff)
downloadmeta-impy-a408bac29378072fbf36864164149458c978cfcc.zip
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/newview/llsrv.h')
-rw-r--r--linden/indra/newview/llsrv.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/linden/indra/newview/llsrv.h b/linden/indra/newview/llsrv.h
new file mode 100644
index 0000000..fca646d
--- /dev/null
+++ b/linden/indra/newview/llsrv.h
@@ -0,0 +1,66 @@
1/**
2 * @file llsrv.h
3 * @brief Wrapper for DNS SRV record lookups
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#ifndef LL_LLSRV_H
30#define LL_LLSRV_H
31
32class LLSRV;
33
34class LLSRVRecord
35{
36 friend class LLSRV;
37
38protected:
39 U16 mPriority;
40 U16 mWeight;
41 std::string mTarget;
42 U16 mPort;
43
44 LLSRVRecord(U16 priority, U16 weight, const std::string& target,
45 U16 port) :
46 mPriority(priority),
47 mWeight(weight),
48 mTarget(target),
49 mPort(port) {
50 }
51
52public:
53 U16 priority() const { return mPriority; }
54 U16 weight() const { return mWeight; }
55 const std::string& target() const { return mTarget; }
56 U16 port() const { return mPort; }
57};
58
59class LLSRV
60{
61public:
62 static std::vector<LLSRVRecord> query(const std::string& name);
63 static std::vector<std::string> rewriteURI(const std::string& uri);
64};
65
66#endif // LL_LLSRV_H