summaryrefslogtreecommitdiff
path: root/indra/newview/llsrv.h
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2007-09-14 21:13:20 +0000
committerDon Kjer <don@lindenlab.com>2007-09-14 21:13:20 +0000
commit13c391f1984bb8cb9d67a7729af2ee5714409215 (patch)
tree112edff1d25adabb4893e6746ba76a4182865f8a /indra/newview/llsrv.h
parentb3d807d5ff8dca6c891e9a5e0ddc7bc147d69f8c (diff)
EFFECTIVE MERGE: svn merge -r 68118:68999 svn+ssh://svn/svn/linden/branches/maintenance
ACTUAL MERGE: svn merge -r 69685:69687 svn+ssh://svn/svn/linden/branches/release-r69649-maintenance-sync EQUIVALENT TO: svn merge -r 68118:69663 svn+ssh://svn/svn/linden/branches/maintenance-r68999
Diffstat (limited to 'indra/newview/llsrv.h')
-rw-r--r--indra/newview/llsrv.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/indra/newview/llsrv.h b/indra/newview/llsrv.h
index fde4f3915d..9876f36ce7 100644
--- a/indra/newview/llsrv.h
+++ b/indra/newview/llsrv.h
@@ -9,52 +9,9 @@
#ifndef LL_LLSRV_H
#define LL_LLSRV_H
-class LLSRV;
-
-class LLSRVRecord
-{
- friend class LLSRV;
-
-protected:
- U16 mPriority;
- U16 mWeight;
- std::string mTarget;
- U16 mPort;
-
-public:
- LLSRVRecord(U16 priority, U16 weight, const std::string& target,
- U16 port) :
- mPriority(priority),
- mWeight(weight),
- mTarget(target),
- mPort(port) {
- }
-
- U16 priority() const { return mPriority; }
- U16 weight() const { return mWeight; }
- const std::string& target() const { return mTarget; }
- U16 port() const { return mPort; }
-
- struct ComparePriorityLowest
- {
- bool operator()(const LLSRVRecord& lhs, const LLSRVRecord& rhs)
- {
- return lhs.mPriority < rhs.mPriority;
- }
- };
-};
-
class LLSRV
{
-protected:
-#ifndef LL_WINDOWS
- static std::vector<LLSRVRecord> parseResponse(const unsigned char *response,
- int resp_len);
-#endif
- static std::vector<LLSRVRecord> reorder(std::vector<LLSRVRecord>& recs);
-
public:
- static std::vector<LLSRVRecord> query(const std::string& name);
static std::vector<std::string> rewriteURI(const std::string& uri);
};