New upstream version 8.1.0
This commit is contained in:
19
storage/source/net/message/control/SetChannelDirectMsgEx.cpp
Normal file
19
storage/source/net/message/control/SetChannelDirectMsgEx.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <program/Program.h>
|
||||
#include "SetChannelDirectMsgEx.h"
|
||||
|
||||
bool SetChannelDirectMsgEx::processIncoming(ResponseContext& ctx)
|
||||
{
|
||||
LogContext log("SetChannelDirect incoming");
|
||||
|
||||
LOG_DEBUG_CONTEXT(log, 5, std::string("Value: ") + StringTk::intToStr(getValue() ) );
|
||||
|
||||
ctx.getSocket()->setIsDirect(getValue() );
|
||||
|
||||
App* app = Program::getApp();
|
||||
app->getNodeOpStats()->updateNodeOp(ctx.getSocket()->getPeerIP(),
|
||||
StorageOpCounter_SETCHANNELDIRECT, getMsgHeaderUserID() );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user