Explorar o código

添加服务端发送的劫持和恢复处理

JeffWang %!s(int64=3) %!d(string=hai) anos
pai
achega
ed6392ea8f
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      Source/OGCAssist/OGCAssist/PipeClient.cpp

+ 8 - 0
Source/OGCAssist/OGCAssist/PipeClient.cpp

@@ -356,8 +356,16 @@ void CPipeClient::HandleMsg(DATAHEADER &head, MSG_INFO &msg)
 	switch(head.byMsgType)
 	{
 	case S2C_HIJACK:		// ½Ù³Ödll;
+		{
+			if ( !Assist::bHijacked )
+				Assist::HijackedAllCall();
+		}
 		break;
 	case S2C_RESUME:		// »Ö¸´dll;
+		{
+			if ( Assist::bHijacked )
+				Assist::RestoreAllCall();
+		}
 		break;
 	case S2C_CONNECT:		// ´¥·¢connect°´Å¥;
 		break;