version check and port numbers aligned with Java

This commit is contained in:
Matej Sekoranja
2012-06-27 08:25:15 +02:00
parent 4b5bc38835
commit 998fd9e44e
8 changed files with 23 additions and 31 deletions

View File

@@ -259,7 +259,7 @@ namespace epics {
// second byte version - major/minor nibble
int8 magic = receiveBuffer->getByte();
int8 version = receiveBuffer->getByte();
if(unlikely((magic != CA_MAGIC) || (((uint8_t)version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION))
if(unlikely(magic != CA_MAGIC))
return false;
// only data for UDP