diff options
Diffstat (limited to 'linden/indra/llmessage')
-rw-r--r-- | linden/indra/llmessage/llcircuit.cpp | 19 | ||||
-rw-r--r-- | linden/indra/llmessage/llcircuit.h | 5 | ||||
-rw-r--r-- | linden/indra/llmessage/llcurl.cpp | 5 | ||||
-rw-r--r-- | linden/indra/llmessage/llcurl.h | 3 | ||||
-rw-r--r-- | linden/indra/llmessage/llregionflags.h | 8 | ||||
-rw-r--r-- | linden/indra/llmessage/message.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llmessage/message.h | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/message_prehash.cpp | 5 | ||||
-rw-r--r-- | linden/indra/llmessage/message_prehash.h | 2 |
9 files changed, 32 insertions, 24 deletions
diff --git a/linden/indra/llmessage/llcircuit.cpp b/linden/indra/llmessage/llcircuit.cpp index 1d1be56..0db9f8e 100644 --- a/linden/indra/llmessage/llcircuit.cpp +++ b/linden/indra/llmessage/llcircuit.cpp | |||
@@ -1170,13 +1170,11 @@ std::ostream& operator<<(std::ostream& s, LLCircuitData& circuit) | |||
1170 | return s; | 1170 | return s; |
1171 | } | 1171 | } |
1172 | 1172 | ||
1173 | const LLString LLCircuitData::getInfoString() const | 1173 | void LLCircuitData::getInfo(LLSD& info) const |
1174 | { | 1174 | { |
1175 | std::ostringstream info; | 1175 | info["Host"] = mHost.getIPandPort(); |
1176 | info << "Circuit: " << mHost << std::endl | 1176 | info["Alive"] = mbAlive; |
1177 | << (mbAlive ? "Alive" : "Not Alive") << std::endl | 1177 | info["Age"] = mExistenceTimer.getElapsedTimeF32(); |
1178 | << "Age: " << mExistenceTimer.getElapsedTimeF32() << std::endl; | ||
1179 | return LLString(info.str()); | ||
1180 | } | 1178 | } |
1181 | 1179 | ||
1182 | void LLCircuitData::dumpResendCountAndReset() | 1180 | void LLCircuitData::dumpResendCountAndReset() |
@@ -1200,17 +1198,16 @@ std::ostream& operator<<(std::ostream& s, LLCircuit &circuit) | |||
1200 | return s; | 1198 | return s; |
1201 | } | 1199 | } |
1202 | 1200 | ||
1203 | const LLString LLCircuit::getInfoString() const | 1201 | void LLCircuit::getInfo(LLSD& info) const |
1204 | { | 1202 | { |
1205 | std::ostringstream info; | ||
1206 | info << "Circuit Info:" << std::endl; | ||
1207 | LLCircuit::circuit_data_map::const_iterator end = mCircuitData.end(); | 1203 | LLCircuit::circuit_data_map::const_iterator end = mCircuitData.end(); |
1208 | LLCircuit::circuit_data_map::const_iterator it; | 1204 | LLCircuit::circuit_data_map::const_iterator it; |
1205 | LLSD circuit_info; | ||
1209 | for(it = mCircuitData.begin(); it != end; ++it) | 1206 | for(it = mCircuitData.begin(); it != end; ++it) |
1210 | { | 1207 | { |
1211 | info << (*it).second->getInfoString() << std::endl; | 1208 | (*it).second->getInfo(circuit_info); |
1209 | info["Circuits"].append(circuit_info); | ||
1212 | } | 1210 | } |
1213 | return LLString(info.str()); | ||
1214 | } | 1211 | } |
1215 | 1212 | ||
1216 | void LLCircuit::getCircuitRange( | 1213 | void LLCircuit::getCircuitRange( |
diff --git a/linden/indra/llmessage/llcircuit.h b/linden/indra/llmessage/llcircuit.h index 128b1bc..1a6611f 100644 --- a/linden/indra/llmessage/llcircuit.h +++ b/linden/indra/llmessage/llcircuit.h | |||
@@ -75,6 +75,7 @@ const S32 LL_MAX_ACKED_PACKETS_PER_FRAME = 200; | |||
75 | // | 75 | // |
76 | class LLMessageSystem; | 76 | class LLMessageSystem; |
77 | class LLEncodedDatagramService; | 77 | class LLEncodedDatagramService; |
78 | class LLSD; | ||
78 | 79 | ||
79 | // | 80 | // |
80 | // Classes | 81 | // Classes |
@@ -158,7 +159,7 @@ public: | |||
158 | // | 159 | // |
159 | void checkPeriodTime(); // Reset per-period counters if necessary. | 160 | void checkPeriodTime(); // Reset per-period counters if necessary. |
160 | friend std::ostream& operator<<(std::ostream& s, LLCircuitData &circuit); | 161 | friend std::ostream& operator<<(std::ostream& s, LLCircuitData &circuit); |
161 | const LLString getInfoString() const; | 162 | void getInfo(LLSD& info) const; |
162 | 163 | ||
163 | friend class LLCircuit; | 164 | friend class LLCircuit; |
164 | friend class LLMessageSystem; | 165 | friend class LLMessageSystem; |
@@ -304,7 +305,7 @@ public: | |||
304 | void sendAcks(); | 305 | void sendAcks(); |
305 | 306 | ||
306 | friend std::ostream& operator<<(std::ostream& s, LLCircuit &circuit); | 307 | friend std::ostream& operator<<(std::ostream& s, LLCircuit &circuit); |
307 | const LLString getInfoString() const; | 308 | void getInfo(LLSD& info) const; |
308 | 309 | ||
309 | void dumpResends(); | 310 | void dumpResends(); |
310 | 311 | ||
diff --git a/linden/indra/llmessage/llcurl.cpp b/linden/indra/llmessage/llcurl.cpp index 01976b1..9b5e6cd 100644 --- a/linden/indra/llmessage/llcurl.cpp +++ b/linden/indra/llmessage/llcurl.cpp | |||
@@ -367,6 +367,11 @@ LLCurl::getByteRange(const std::string& url, S32 offset, S32 length, ResponderPt | |||
367 | mainMulti()->getByteRange(url, offset, length, responder); | 367 | mainMulti()->getByteRange(url, offset, length, responder); |
368 | } | 368 | } |
369 | 369 | ||
370 | void LLCurl::initClass() | ||
371 | { | ||
372 | curl_global_init(CURL_GLOBAL_ALL); | ||
373 | } | ||
374 | |||
370 | void | 375 | void |
371 | LLCurl::process() | 376 | LLCurl::process() |
372 | { | 377 | { |
diff --git a/linden/indra/llmessage/llcurl.h b/linden/indra/llmessage/llcurl.h index d21cdc4..53287c2 100644 --- a/linden/indra/llmessage/llcurl.h +++ b/linden/indra/llmessage/llcurl.h | |||
@@ -130,8 +130,9 @@ public: | |||
130 | static void get(const std::string& url, ResponderPtr); | 130 | static void get(const std::string& url, ResponderPtr); |
131 | static void getByteRange(const std::string& url, S32 offset, S32 length, ResponderPtr responder); | 131 | static void getByteRange(const std::string& url, S32 offset, S32 length, ResponderPtr responder); |
132 | 132 | ||
133 | static void initClass(); // *NOTE:Mani - not thread safe! | ||
133 | static void process(); | 134 | static void process(); |
134 | static void cleanup(); | 135 | static void cleanup(); // *NOTE:Mani - not thread safe! |
135 | }; | 136 | }; |
136 | 137 | ||
137 | namespace boost | 138 | namespace boost |
diff --git a/linden/indra/llmessage/llregionflags.h b/linden/indra/llmessage/llregionflags.h index 72272c0..5f3fad8 100644 --- a/linden/indra/llmessage/llregionflags.h +++ b/linden/indra/llmessage/llregionflags.h | |||
@@ -84,8 +84,8 @@ const U32 REGION_FLAGS_ESTATE_SKIP_SCRIPTS = (1 << 21); | |||
84 | const U32 REGION_FLAGS_RESTRICT_PUSHOBJECT = (1 << 22); | 84 | const U32 REGION_FLAGS_RESTRICT_PUSHOBJECT = (1 << 22); |
85 | 85 | ||
86 | const U32 REGION_FLAGS_DENY_ANONYMOUS = (1 << 23); | 86 | const U32 REGION_FLAGS_DENY_ANONYMOUS = (1 << 23); |
87 | const U32 REGION_FLAGS_DENY_IDENTIFIED = (1 << 24); | 87 | // const U32 REGION_FLAGS_DENY_IDENTIFIED = (1 << 24); |
88 | const U32 REGION_FLAGS_DENY_TRANSACTED = (1 << 25); | 88 | // const U32 REGION_FLAGS_DENY_TRANSACTED = (1 << 25); |
89 | 89 | ||
90 | const U32 REGION_FLAGS_ALLOW_PARCEL_CHANGES = (1 << 26); | 90 | const U32 REGION_FLAGS_ALLOW_PARCEL_CHANGES = (1 << 26); |
91 | 91 | ||
@@ -94,6 +94,7 @@ const U32 REGION_FLAGS_ABUSE_EMAIL_TO_ESTATE_OWNER = (1 << 27); | |||
94 | const U32 REGION_FLAGS_ALLOW_VOICE = (1 << 28); | 94 | const U32 REGION_FLAGS_ALLOW_VOICE = (1 << 28); |
95 | 95 | ||
96 | const U32 REGION_FLAGS_BLOCK_PARCEL_SEARCH = (1 << 29); | 96 | const U32 REGION_FLAGS_BLOCK_PARCEL_SEARCH = (1 << 29); |
97 | const U32 REGION_FLAGS_DENY_AGEUNVERIFIED = (1 << 30); | ||
97 | 98 | ||
98 | 99 | ||
99 | const U32 REGION_FLAGS_DEFAULT = REGION_FLAGS_ALLOW_LANDMARK | | 100 | const U32 REGION_FLAGS_DEFAULT = REGION_FLAGS_ALLOW_LANDMARK | |
@@ -110,8 +111,7 @@ const U32 REGION_FLAGS_ESTATE_MASK = REGION_FLAGS_EXTERNALLY_VISIBLE | |||
110 | | REGION_FLAGS_PUBLIC_ALLOWED | 111 | | REGION_FLAGS_PUBLIC_ALLOWED |
111 | | REGION_FLAGS_SUN_FIXED | 112 | | REGION_FLAGS_SUN_FIXED |
112 | | REGION_FLAGS_DENY_ANONYMOUS | 113 | | REGION_FLAGS_DENY_ANONYMOUS |
113 | | REGION_FLAGS_DENY_IDENTIFIED | 114 | | REGION_FLAGS_DENY_AGEUNVERIFIED; |
114 | | REGION_FLAGS_DENY_TRANSACTED; | ||
115 | 115 | ||
116 | inline BOOL is_prelude( U32 flags ) | 116 | inline BOOL is_prelude( U32 flags ) |
117 | { | 117 | { |
diff --git a/linden/indra/llmessage/message.cpp b/linden/indra/llmessage/message.cpp index e2cd19b..d446730 100644 --- a/linden/indra/llmessage/message.cpp +++ b/linden/indra/llmessage/message.cpp | |||
@@ -1562,12 +1562,9 @@ U32 LLMessageSystem::getOurCircuitCode() | |||
1562 | return mOurCircuitCode; | 1562 | return mOurCircuitCode; |
1563 | } | 1563 | } |
1564 | 1564 | ||
1565 | LLString LLMessageSystem::getCircuitInfoString() | 1565 | void LLMessageSystem::getCircuitInfo(LLSD& info) const |
1566 | { | 1566 | { |
1567 | LLString info_string; | 1567 | mCircuitInfo.getInfo(info); |
1568 | |||
1569 | info_string += mCircuitInfo.getInfoString(); | ||
1570 | return info_string; | ||
1571 | } | 1568 | } |
1572 | 1569 | ||
1573 | // returns whether the given host is on a trusted circuit | 1570 | // returns whether the given host is on a trusted circuit |
diff --git a/linden/indra/llmessage/message.h b/linden/indra/llmessage/message.h index 4454b40..3381ece 100644 --- a/linden/indra/llmessage/message.h +++ b/linden/indra/llmessage/message.h | |||
@@ -529,7 +529,7 @@ public: | |||
529 | bool isMatchingDigestForWindow(const char* digest, const S32 window) const; | 529 | bool isMatchingDigestForWindow(const char* digest, const S32 window) const; |
530 | 530 | ||
531 | void showCircuitInfo(); | 531 | void showCircuitInfo(); |
532 | LLString getCircuitInfoString(); | 532 | void getCircuitInfo(LLSD& info) const; |
533 | 533 | ||
534 | U32 getOurCircuitCode(); | 534 | U32 getOurCircuitCode(); |
535 | 535 | ||
diff --git a/linden/indra/llmessage/message_prehash.cpp b/linden/indra/llmessage/message_prehash.cpp index 0185c0f..0b614d8 100644 --- a/linden/indra/llmessage/message_prehash.cpp +++ b/linden/indra/llmessage/message_prehash.cpp | |||
@@ -1369,6 +1369,9 @@ char * _PREHASH_AvatarNotesReply; | |||
1369 | char * _PREHASH_CacheID; | 1369 | char * _PREHASH_CacheID; |
1370 | char * _PREHASH_OwnerMask; | 1370 | char * _PREHASH_OwnerMask; |
1371 | char * _PREHASH_TransferInventoryAck; | 1371 | char * _PREHASH_TransferInventoryAck; |
1372 | char * _PREHASH_RegionDenyAgeUnverified; | ||
1373 | char * _PREHASH_AgeVerificationBlock; | ||
1374 | |||
1372 | 1375 | ||
1373 | void init_prehash_data() | 1376 | void init_prehash_data() |
1374 | { | 1377 | { |
@@ -2702,4 +2705,6 @@ void init_prehash_data() | |||
2702 | _PREHASH_CacheID = gMessageStringTable.getString("CacheID"); | 2705 | _PREHASH_CacheID = gMessageStringTable.getString("CacheID"); |
2703 | _PREHASH_OwnerMask = gMessageStringTable.getString("OwnerMask"); | 2706 | _PREHASH_OwnerMask = gMessageStringTable.getString("OwnerMask"); |
2704 | _PREHASH_TransferInventoryAck = gMessageStringTable.getString("TransferInventoryAck"); | 2707 | _PREHASH_TransferInventoryAck = gMessageStringTable.getString("TransferInventoryAck"); |
2708 | _PREHASH_RegionDenyAgeUnverified = gMessageStringTable.getString("RegionDenyAgeUnverified"); | ||
2709 | _PREHASH_AgeVerificationBlock = gMessageStringTable.getString("AgeVerificationBlock"); | ||
2705 | } | 2710 | } |
diff --git a/linden/indra/llmessage/message_prehash.h b/linden/indra/llmessage/message_prehash.h index 2cea924..4210665 100644 --- a/linden/indra/llmessage/message_prehash.h +++ b/linden/indra/llmessage/message_prehash.h | |||
@@ -1369,6 +1369,8 @@ extern char * _PREHASH_AvatarNotesReply; | |||
1369 | extern char * _PREHASH_CacheID; | 1369 | extern char * _PREHASH_CacheID; |
1370 | extern char * _PREHASH_OwnerMask; | 1370 | extern char * _PREHASH_OwnerMask; |
1371 | extern char * _PREHASH_TransferInventoryAck; | 1371 | extern char * _PREHASH_TransferInventoryAck; |
1372 | extern char * _PREHASH_RegionDenyAgeUnverified; | ||
1373 | extern char * _PREHASH_AgeVerificationBlock; | ||
1372 | 1374 | ||
1373 | 1375 | ||
1374 | void init_prehash_data(); | 1376 | void init_prehash_data(); |