Skip to content
Kyuubi edited this page Jun 16, 2023 · 1 revision

Send the Msg to the agent and he will route it to the client (S -> S), and then (S -> C).


4 bytes dwClientSessionId
2 bytes wMsgId

    CMsg *ServerFramework::MakeRelayMsgToClient(WORD wMsgId, DWORD dwClientSessionId) {
        CMsg *pMsg = g_pNetEngine->AllocNewMsg(false);
        pMsg->SetMsgID(FRAMEWORKMSG_RELAY_MSG_TO_CLIENT_SINGLE);
        *pMsg << dwClientSessionId << wMsgId;

        return pMsg;
    }

Clone this wiki locally