MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / HandleHandshake

Function HandleHandshake

src/Hook/Hooks_IPC.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 static void HandleHandshake(void* pServer, HSteamPipe hSteamPipe,CUtlBuffer* pRead)
93 {
94 IPCMessages::IPCRequest request{pRead};
95 if (!request.ok()|| request.command() != EIPCCommand::Handshake) return;
96 IPCMessages::IPCHandshakeReq handshake{request.body()};
97 if(!handshake.ok()) return;
98
99 CPipeClient* pipe = GetPipe(pServer, hSteamPipe);
100 if (!pipe) return;
101 // set client PID
102 pipe->m_clientPID = handshake.pid();
103
104 LOG_IPC_DEBUG("Received handshake from {},{}", pipe->DebugString(), handshake.DebugString());
105 PipeManager::OnHandshake(pipe);
106 }
107
108 HOOK_FUNC(IPCProcessMessage, bool,void* pServer, HSteamPipe hSteamPipe,
109 CUtlBuffer* pRead, CUtlBuffer* pWrite)

Callers 1

HOOK_FUNCFunction · 0.85

Calls 3

GetPipeFunction · 0.85
OnHandshakeFunction · 0.85
DebugStringMethod · 0.45

Tested by

no test coverage detected