added message logger / builder floaters

This commit is contained in:
Hazim Gazov
2010-05-05 17:08:05 -03:00
parent 97359b901f
commit 25fe391f07
20 changed files with 2276 additions and 13 deletions

View File

@@ -87,6 +87,11 @@
#include "v4math.h"
#include "lltransfertargetvfile.h"
// <edit>
#include "llrand.h"
#include "llmessagelog.h"
// </edit>
// Constants
//const char* MESSAGE_LOG_FILENAME = "message.log";
static const F32 CIRCUIT_DUMP_TIMEOUT = 30.f;
@@ -562,6 +567,14 @@ BOOL LLMessageSystem::checkMessages( S64 frame_count )
// If you want to dump all received packets into SecondLife.log, uncomment this
//dumpPacketToLog();
// <edit>
if(mTrueReceiveSize)
{
LLMessageLog::log(mLastSender, LLHost(16777343, mPort), buffer, mTrueReceiveSize);
}
// </edit>
if (receive_size < (S32) LL_MINIMUM_VALID_PACKET_SIZE)
{
// A receive size of zero is OK, that means that there are no more packets available.
@@ -1554,6 +1567,13 @@ void LLMessageSystem::getCircuitInfo(LLSD& info) const
mCircuitInfo.getInfo(info);
}
// <edit>
LLCircuit* LLMessageSystem::getCircuit()
{
return &mCircuitInfo;
}
// </edit>
// returns whether the given host is on a trusted circuit
BOOL LLMessageSystem::getCircuitTrust(const LLHost &host)
{