Skip to content

Commit 9352bf6

Browse files
committed
fixed:build error
1 parent 193dedd commit 9352bf6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

XEngine_Source/XEngine_MQServiceApp/MQService_Net.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ void __stdcall MessageQueue_Callback_WSLeave(LPCTSTR lpszClientAddr, SOCKET hSoc
7474
XEngine_MQXService_Close(lpszClientAddr, XENGINE_MQAPP_NETTYPE_WEBSOCKET, FALSE);
7575
}
7676
//////////////////////////////////////////////////////////////////////////
77-
void __stdcall MessageQueue_Callback_Timeout(LPCSTR lpszSessionStr, LPVOID lParam)
77+
void __stdcall MessageQueue_Callback_Timeout(LPCSTR lpszClientAddr, LPCTSTR lpszClientUser, ENUM_MQCORE_SESSION_CLIENT_TYPE enClientType, LPVOID lParam)
7878
{
79-
XEngine_MQXService_Close(lpszSessionStr, XENGINE_MQAPP_NETTYPE_HTTP, TRUE);
79+
XEngine_MQXService_Close(lpszClientAddr, XENGINE_MQAPP_NETTYPE_HTTP, TRUE);
8080
}
8181
//////////////////////////////////////////////////////////////////////////
8282
void XEngine_MQXService_Close(LPCTSTR lpszClientAddr, int nIPProto, BOOL bHeart)
@@ -101,7 +101,7 @@ void XEngine_MQXService_Close(LPCTSTR lpszClientAddr, int nIPProto, BOOL bHeart)
101101
}
102102
XENGINE_PROTOCOL_USERINFO st_UserInfo;
103103
memset(&st_UserInfo, '\0', sizeof(XENGINE_PROTOCOL_USERINFO));
104-
if (SessionModule_Client_GetAuth(lpszClientAddr, st_UserInfo.tszUserName))
104+
if (SessionModule_Client_GetUser(lpszClientAddr, st_UserInfo.tszUserName))
105105
{
106106
DBModule_MQUser_UserUPDate(&st_UserInfo);
107107
}

XEngine_Source/XEngine_MQServiceApp/MQService_Net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BOOL __stdcall MessageQueue_Callback_WSLogin(LPCTSTR lpszClientAddr, SOCKET hSoc
1212
void __stdcall MessageQueue_Callback_WSRecv(LPCTSTR lpszClientAddr, SOCKET hSocket, LPCTSTR lpszRecvMsg, int nMsgLen, LPVOID lParam);
1313
void __stdcall MessageQueue_Callback_WSLeave(LPCTSTR lpszClientAddr, SOCKET hSocket, LPVOID lParam);
1414

15-
void __stdcall MessageQueue_Callback_Timeout(LPCSTR lpszSessionStr, LPVOID lParam);
15+
void __stdcall MessageQueue_Callback_Timeout(LPCSTR lpszClientAddr, LPCTSTR lpszClientUser, ENUM_MQCORE_SESSION_CLIENT_TYPE enClientType, LPVOID lParam);
1616

1717
void XEngine_MQXService_Close(LPCTSTR lpszClientAddr, int nIPProto, BOOL bHeart);
1818
BOOL XEngine_MQXService_Send(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, int nMsgLen, int nIPProto);

XEngine_Source/XEngine_MQServiceApp/MQService_TCPTask.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ BOOL MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCTSTR lpszC
200200
if (XENGINE_MQAPP_NETTYPE_HTTP == nNetType)
201201
{
202202
_stprintf(tszSessionStr, _T("%lld"), pSt_ProtocolHdr->xhToken);
203-
if (!SessionModule_Client_GetAuth(tszSessionStr, tszUserName))
203+
if (!SessionModule_Client_GetUser(tszSessionStr, tszUserName))
204204
{
205205
pSt_ProtocolHdr->wReserve = 700;
206206
ProtocolModule_Packet_Common(nNetType, pSt_ProtocolHdr, &st_MQProtocol, tszSDBuffer, &nSDLen);
@@ -211,7 +211,7 @@ BOOL MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCTSTR lpszC
211211
}
212212
else
213213
{
214-
if (!SessionModule_Client_GetAuth(lpszClientAddr, tszUserName))
214+
if (!SessionModule_Client_GetUser(lpszClientAddr, tszUserName))
215215
{
216216
pSt_ProtocolHdr->wReserve = 700;
217217
ProtocolModule_Packet_Common(nNetType, pSt_ProtocolHdr, &st_MQProtocol, tszSDBuffer, &nSDLen);

0 commit comments

Comments
 (0)