Updating cmake, version, relaxing condition for network gathering loop on receive message

parent 191cbbb3
......@@ -6,7 +6,7 @@ list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
if( NOT DEFINED ITA_VANET_VERSION_MAJOR )
set( ITA_VANET_VERSION_MAJOR "v2016" CACHE STRING "VANet version major (usually 'v' and year)" )
set( ITA_VANET_VERSION_MAJOR "v2017" CACHE STRING "VANet version major (usually 'v' and year)" )
endif( )
if( NOT DEFINED ITA_VANET_VERSION_MINOR )
......
......@@ -124,7 +124,7 @@ void CVANetMessage::ReadMessage()
m_vecIncomingBuffer.resize( nMessageSize );
int iBytesReceivedTotal = 0;
while( nMessageSize != iBytesReceivedTotal )
while( nMessageSize > iBytesReceivedTotal )
{
int iIncommingBytes = m_pConnection->WaitForIncomingData( 0 );
int iBytesReceived = m_pConnection->ReadRawBuffer( &m_vecIncomingBuffer[ iBytesReceivedTotal ], iIncommingBytes );
......@@ -222,7 +222,7 @@ void CVANetMessage::ReadAnswer()
m_vecIncomingBuffer.resize( nMessageSize );
int iBytesReceivedTotal = 0;
while( nMessageSize != iBytesReceivedTotal )
while( nMessageSize > iBytesReceivedTotal )
{
int iIncommingBytes = m_pConnection->WaitForIncomingData( 0 );
int iBytesReceived = m_pConnection->ReadRawBuffer( &m_vecIncomingBuffer[ iBytesReceivedTotal ], iIncommingBytes );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment