-
Yet another custom binary protocol library implementation
Recently I have been involved in a project that required a custom binary protocol specification be written for interaction between some custom hardware and a central processing server. Before you wonder why re-invent the wheel I did look into protoBuf but although perfect for what I was doing, implementing this on the custom hardware would have been more difficult. The communication was going to occur over TCP using sockets. Some of the requirements of this protocol included: 1. A small size protocol to minize network traffic 2. Libraries that could be used across multiple applications to handle the protocol 3. An extendable protocol so that new packet types could be…