beegfs/meta/source/net/message/control/SetChannelDirectMsgEx.cpp
2025-08-10 01:34:16 +02:00

22 lines
567 B
C++

#include <program/Program.h>
#include "SetChannelDirectMsgEx.h"
bool SetChannelDirectMsgEx::processIncoming(ResponseContext& ctx)
{
#ifdef BEEGFS_DEBUG
const char* logContext = "SetChannelDirect incoming";
LOG_DEBUG(logContext, 5, std::string("Value: ") + StringTk::intToStr(getValue() ) );
#endif // BEEGFS_DEBUG
ctx.getSocket()->setIsDirect(getValue() );
App* app = Program::getApp();
app->getNodeOpStats()->updateNodeOp(ctx.getSocket()->getPeerIP(), MetaOpCounter_SETCHANNELDIRECT,
getMsgHeaderUserID() );
return true;
}