提交 7ce1c1b0 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

Some improvement in win7

上级 7804a935
......@@ -238,7 +238,7 @@ namespace ZP_Cluster{
}
void zp_ClusterNode::SendHelloPackage()
{
int nMsgLen = sizeof(CROSS_SVR_MSG::hearder) + sizeof (CROSS_SVR_MSG::uni_payload::tag_CSM_BasicInfo);
int nMsgLen = sizeof(CROSS_SVR_MSG::tag_header) + sizeof (CROSS_SVR_MSG::uni_payload::tag_CSM_BasicInfo);
QByteArray array(nMsgLen,0);
CROSS_SVR_MSG * pMsg =(CROSS_SVR_MSG *) array.data();
pMsg->hearder.Mark = 0x1234;
......
......@@ -238,7 +238,7 @@ namespace ZP_Cluster{
return;
}
//Msgs
int nMsgLen = sizeof(CROSS_SVR_MSG::hearder) + sizeof (CROSS_SVR_MSG::uni_payload::tag_CSM_Broadcast) * nsz;
int nMsgLen = sizeof(CROSS_SVR_MSG::tag_header) + sizeof (CROSS_SVR_MSG::uni_payload::tag_CSM_Broadcast) * nsz;
QByteArray array(nMsgLen,0);
CROSS_SVR_MSG * pMsg =(CROSS_SVR_MSG *) array.data();
pMsg->hearder.Mark = 0x1234;
......@@ -264,7 +264,7 @@ namespace ZP_Cluster{
void zp_ClusterTerm::SendHeartBeatings()
{
//Msgs
int nMsgLen = sizeof(CROSS_SVR_MSG::hearder);
int nMsgLen = sizeof(CROSS_SVR_MSG::tag_header);
QByteArray array(nMsgLen,0);
CROSS_SVR_MSG * pMsg =(CROSS_SVR_MSG *) array.data();
pMsg->hearder.Mark = 0x1234;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册