1
This commit is contained in:
parent
7e1cfb2e10
commit
adfa92a169
@ -8,6 +8,11 @@ message SS_CMPing
|
||||
{
|
||||
}
|
||||
|
||||
message SS_SMPing
|
||||
{
|
||||
optional int32 param1 = 1; optional int32 source = 2 [default = 0]; //0:tcp 1:udp
|
||||
}
|
||||
|
||||
message SS_CMLogin_CMReConnect_CommonHead
|
||||
{
|
||||
optional int32 server_id = 1;
|
||||
|
@ -57,11 +57,15 @@ void DownStream::OnClose()
|
||||
|
||||
void DownStream::ProcCMMsg(f8::MsgHdr& hdr, int tag)
|
||||
{
|
||||
if (hdr.msgid == ss::_SS_CMPing && IsLongSession() && tag == ST_Tcp) {
|
||||
if (hdr.msgid == ss::_SS_CMPing) {
|
||||
ss::SS_Ping msg;
|
||||
GCListener::Instance()->SendMsgEx(socket_handle_, ss::_SS_CMPing, msg);
|
||||
if (!long_session_wp_.expired()) {
|
||||
long_session_wp_.lock()->UpdatePing();
|
||||
if (IsLongSession() && tag == ST_Tcp) {
|
||||
GCListener::Instance()->SendMsgEx(socket_handle_, ss::_SS_CMPing, msg);
|
||||
if (!long_session_wp_.expired()) {
|
||||
long_session_wp_.lock()->UpdatePing();
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user