Skip to content

Commit cc8fd6f

Browse files
committed
improved:reply message protocol set
1 parent 7ecfaa6 commit cc8fd6f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

XEngine_Source/XEngine_MQServiceApp/MQService_TCPTask.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ bool MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCXSTR lpszC
312312
}
313313
else if (0 == st_MQProtocol.nPubTime)
314314
{
315+
pSt_ProtocolHdr->unOperatorCode = XENGINE_COMMUNICATION_PROTOCOL_OPERATOR_CODE_MQ_MSGNOTIFY;
315316
//设置为0,不是定时发布,即时通知
316317
if (1 == st_MQProtocol.st_MSGAttr.byAttrAll)
317318
{
@@ -329,8 +330,6 @@ bool MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCXSTR lpszC
329330
int nClientType = 0;
330331
memset(tszSDBuffer, '\0', sizeof(tszSDBuffer));
331332

332-
pSt_ProtocolHdr->unOperatorCode = XENGINE_COMMUNICATION_PROTOCOL_OPERATOR_CODE_MQ_MSGNOTIFY;
333-
334333
SessionModule_Client_GetType(pptszListAddr[i], &nClientType);
335334
ProtocolModule_Packet_Common(nClientType, pSt_ProtocolHdr, &st_MQProtocol, tszSDBuffer, &nSDLen, lpszMsgBuffer + sizeof(XENGINE_PROTOCOL_XMQ), nMsgLen - sizeof(XENGINE_PROTOCOL_XMQ));
336335
XEngine_MQXService_Send(pptszListAddr[i], tszSDBuffer, nSDLen, nClientType);
@@ -339,8 +338,6 @@ bool MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCXSTR lpszC
339338
}
340339
else
341340
{
342-
pSt_ProtocolHdr->unOperatorCode = XENGINE_COMMUNICATION_PROTOCOL_OPERATOR_CODE_MQ_MSGNOTIFY;
343-
344341
if (_tcsxlen(st_MQProtocol.tszMQUsr) > 0)
345342
{
346343
//如果发送指定用户被指定.

0 commit comments

Comments
 (0)