基线:UDP 收包长度校验 + SQLite 表描述符重构 + 清理设计文档
This commit is contained in:
@@ -342,12 +342,13 @@ bool LowerCommManager::listenThreadFunc()
|
||||
{
|
||||
try
|
||||
{
|
||||
memset(Buff, 0, sizeof(Buff));
|
||||
int nRead = m_udpComm->udpScoket->iRecieveMessage(Buff, sizeof(Buff));
|
||||
cout<<MOOS::ConsoleColours::yellow()<< "RECEVE DATA COUNT:" << nRead << MOOS::ConsoleColours::reset() << endl;
|
||||
if(nRead > 0)
|
||||
{
|
||||
try {
|
||||
if(m_udpComm->pushMsgToQueue(Buff))
|
||||
if(m_udpComm->pushMsgToQueue(Buff, nRead))
|
||||
{
|
||||
//更新当前状态
|
||||
if(!updatePoweSystemStates())
|
||||
|
||||
Reference in New Issue
Block a user