fixed outbound message logger, moved the logging function to llpacketring instead of llnet
This commit is contained in:
@@ -50,6 +50,11 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//<edit>
|
||||||
|
#include "llmessagelog.h"
|
||||||
|
#include "message.h"
|
||||||
|
//</edit>
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
LLPacketRing::LLPacketRing () :
|
LLPacketRing::LLPacketRing () :
|
||||||
@@ -273,7 +278,11 @@ S32 LLPacketRing::receivePacket (S32 socket, char *datap)
|
|||||||
|
|
||||||
BOOL LLPacketRing::sendPacket(int h_socket, char * send_buffer, S32 buf_size, LLHost host)
|
BOOL LLPacketRing::sendPacket(int h_socket, char * send_buffer, S32 buf_size, LLHost host)
|
||||||
{
|
{
|
||||||
|
//<edit>
|
||||||
|
LLMessageLog::log(LLHost("127.0.0.1", gMessageSystem->getListenPort()), host, (U8*)send_buffer, buf_size);
|
||||||
|
//</edit>
|
||||||
BOOL status = TRUE;
|
BOOL status = TRUE;
|
||||||
|
|
||||||
if (!mUseOutThrottle)
|
if (!mUseOutThrottle)
|
||||||
{
|
{
|
||||||
return doSendPacket(h_socket, send_buffer, buf_size, host );
|
return doSendPacket(h_socket, send_buffer, buf_size, host );
|
||||||
|
|||||||
@@ -55,11 +55,6 @@
|
|||||||
#include "llhost.h"
|
#include "llhost.h"
|
||||||
#include "lltimer.h"
|
#include "lltimer.h"
|
||||||
#include "indra_constants.h"
|
#include "indra_constants.h"
|
||||||
// <edit>
|
|
||||||
#include "llmessagelog.h"
|
|
||||||
#include "message.h"
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
|
|
||||||
#include "llsocks5.h"
|
#include "llsocks5.h"
|
||||||
|
|
||||||
@@ -426,9 +421,6 @@ S32 receive_packet(int hSocket, char * receiveBuffer)
|
|||||||
// Returns TRUE on success.
|
// Returns TRUE on success.
|
||||||
BOOL send_packet(int hSocket, const char *sendBuffer, int size, U32 recipient, int nPort)
|
BOOL send_packet(int hSocket, const char *sendBuffer, int size, U32 recipient, int nPort)
|
||||||
{
|
{
|
||||||
// <edit>
|
|
||||||
LLMessageLog::log(LLHost("127.0.0.1", 0), LLHost(recipient, nPort), (U8*)sendBuffer, size);
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
// Sends a packet to the address set in initNet
|
// Sends a packet to the address set in initNet
|
||||||
//
|
//
|
||||||
@@ -760,10 +752,6 @@ int receive_packet(int hSocket, char * receiveBuffer)
|
|||||||
|
|
||||||
BOOL send_packet(int hSocket, const char * sendBuffer, int size, U32 recipient, int nPort)
|
BOOL send_packet(int hSocket, const char * sendBuffer, int size, U32 recipient, int nPort)
|
||||||
{
|
{
|
||||||
// <edit>
|
|
||||||
LLMessageLog::log(LLHost("127.0.0.1", 0), LLHost(recipient, nPort), (U8*)sendBuffer, size);
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
BOOL success;
|
BOOL success;
|
||||||
BOOL resend;
|
BOOL resend;
|
||||||
|
|||||||
@@ -441,13 +441,8 @@ BOOL LLMessageLogFilterApply::tick()
|
|||||||
LLFloaterMessageLog::sInstance->stopApplyingFilter();
|
LLFloaterMessageLog::sInstance->stopApplyingFilter();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
try
|
|
||||||
{
|
|
||||||
LLFloaterMessageLog::sInstance->conditionalLog(LLFloaterMessageLogItem((*mIter)));
|
LLFloaterMessageLog::sInstance->conditionalLog(LLFloaterMessageLogItem((*mIter)));
|
||||||
} catch (char *str)
|
|
||||||
{
|
|
||||||
llwarns << "DERPADERP" << llendl;
|
|
||||||
}
|
|
||||||
mIter++;
|
mIter++;
|
||||||
mProgress++;
|
mProgress++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user