This commit is contained in:
azw 2024-04-03 05:18:05 +00:00
parent f6facb7f2e
commit c89a4746dc
3 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,7 @@ enum SSMessageId_e
_SS_WSP_RequestTargetServer = 11;
_SS_MS_ResponseTargetServer = 12;
_SS_ForceCloseSocket = 13;
_SS_BindUpStreamSocket = 20;
_SS_CMKcpHandshake = 99;
_SS_CMPing = 101;

View File

@ -99,3 +99,7 @@ message SS_Pong
message SS_ForceCloseSocket
{
}
message SS_BindUpStreamSocket
{
}

View File

@ -259,7 +259,9 @@ void App::ProcessTargetServerMsg(f8::MsgHdr* hdr)
GCListener::Instance()->ForceCloseClient(hdr->socket_handle);
return;
}
if (hdr->msgid == ss::_SS_CMLogin || hdr->msgid == ss::_SS_CMReconnect) {
if (hdr->msgid == ss::_SS_CMLogin ||
hdr->msgid == ss::_SS_CMReconnect ||
hdr->msgid == ss::_SS_BindUpStreamSocket) {
DownStreamMgr::Instance()->BindUpStream(hdr->socket_handle, hdr->ip_saddr);
GCListener::Instance()->MarkClient(hdr->socket_handle, true);
}