aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llsrv.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:01 -0500
committerJacek Antonelli2008-08-15 23:45:01 -0500
commit28d8d4e7664bcd6c8369cc18832e42096af7cad2 (patch)
tree069020fe66339aff2ca4176370ff743b14713f2d /linden/indra/newview/llsrv.h
parentSecond Life viewer sources 1.17.2.0 (diff)
downloadmeta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.zip
meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.gz
meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.bz2
meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.xz
Second Life viewer sources 1.17.3.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llsrv.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/linden/indra/newview/llsrv.h b/linden/indra/newview/llsrv.h
index fca646d..9417664 100644
--- a/linden/indra/newview/llsrv.h
+++ b/linden/indra/newview/llsrv.h
@@ -41,6 +41,7 @@ protected:
41 std::string mTarget; 41 std::string mTarget;
42 U16 mPort; 42 U16 mPort;
43 43
44public:
44 LLSRVRecord(U16 priority, U16 weight, const std::string& target, 45 LLSRVRecord(U16 priority, U16 weight, const std::string& target,
45 U16 port) : 46 U16 port) :
46 mPriority(priority), 47 mPriority(priority),
@@ -48,16 +49,30 @@ protected:
48 mTarget(target), 49 mTarget(target),
49 mPort(port) { 50 mPort(port) {
50 } 51 }
51 52
52public:
53 U16 priority() const { return mPriority; } 53 U16 priority() const { return mPriority; }
54 U16 weight() const { return mWeight; } 54 U16 weight() const { return mWeight; }
55 const std::string& target() const { return mTarget; } 55 const std::string& target() const { return mTarget; }
56 U16 port() const { return mPort; } 56 U16 port() const { return mPort; }
57
58 struct ComparePriorityLowest
59 {
60 bool operator()(const LLSRVRecord& lhs, const LLSRVRecord& rhs)
61 {
62 return lhs.mPriority < rhs.mPriority;
63 }
64 };
57}; 65};
58 66
59class LLSRV 67class LLSRV
60{ 68{
69protected:
70#ifndef LL_WINDOWS
71 static std::vector<LLSRVRecord> parseResponse(const unsigned char *response,
72 int resp_len);
73#endif
74 static std::vector<LLSRVRecord> reorder(std::vector<LLSRVRecord>& recs);
75
61public: 76public:
62 static std::vector<LLSRVRecord> query(const std::string& name); 77 static std::vector<LLSRVRecord> query(const std::string& name);
63 static std::vector<std::string> rewriteURI(const std::string& uri); 78 static std::vector<std::string> rewriteURI(const std::string& uri);