对获取EF3返回锁存点功能,基本实现

This commit is contained in:
zhengxuan.zhang
2022-12-01 16:03:30 +08:00
parent 65cb1d3804
commit d652f671db
11 changed files with 349 additions and 171 deletions
+3 -2
View File
@@ -56,7 +56,7 @@ DWORD CMMIO::Send(CString buffer, BOOL needsResponse/*=FALSE*/)
return res;
}
// GetNextReceived() : Helper function, rreturns receives messages placed in the queue
// GetNextReceived() : Helper function, returns receives messages placed in the queue
// by LineReceive()
//
int CMMIO::GetNextReceived(char* inputBuf)
@@ -199,7 +199,7 @@ int CMMIO::AddReceived(const char* Buffer, DWORD Bytes)
// All done so out of the CriticalSection
++m_iNbMsgWaiting;
}
// LeaveCriticalSection( &m_QueueLock );
// LeaveCriticalSection( &m_QueueLock );
pBuffer2 = &Buffer2[0]; // reset out buffer
count = 0;
bEventRequest = true;
@@ -226,6 +226,7 @@ void CMMIO::LineReceive(char* s, int nbCharAvail, BOOL ignoreDelimiter /*= FALSE
if ((!m_usesTerminator && i == nbCharAvail - 1) || (m_usesTerminator && c == m_terminator) ||
ignoreDelimiter)
{
printf("LineReceive got %d chars \n", CurrentPointer);
m_InputBuffer[CurrentPointer] = '\0';
AddReceived(m_InputBuffer, CurrentPointer);
CurrentPointer = 0;