open-dis / open-dis-cpp

C++ implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v6 and v7
BSD 2-Clause "Simplified" License
92 stars 66 forks source link

PDU type must be unsigned char #16

Closed plata closed 5 years ago

plata commented 5 years ago

see https://github.com/open-dis/open-dis-cpp/blob/05aa32c59397b7c889a6b603a6327c69ae0b4420/src/utils/IncomingMessage.cpp#L38

This doesn't work if PDU type is > max signed char (e.g. 250).