| 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) |
no test coverage detected