aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llcircuit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llcircuit.cpp')
-rw-r--r--linden/indra/llmessage/llcircuit.cpp19
1 files changed, 8 insertions, 11 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
1173const LLString LLCircuitData::getInfoString() const 1173void 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
1182void LLCircuitData::dumpResendCountAndReset() 1180void LLCircuitData::dumpResendCountAndReset()
@@ -1200,17 +1198,16 @@ std::ostream& operator<<(std::ostream& s, LLCircuit &circuit)
1200 return s; 1198 return s;
1201} 1199}
1202 1200
1203const LLString LLCircuit::getInfoString() const 1201void 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
1216void LLCircuit::getCircuitRange( 1213void LLCircuit::getCircuitRange(