ruby-thread

handle AVL messages with iodine

落爺英雄遲暮 提交于 2019-12-11 15:02:54
问题 Right now I'm developing a some sort of parser for the messages of the Skypatrol TT8750+ and my threaded TCP server is working. The problem is that it isn't a good approach if there are to many devices connected at the same time. I'm using iodine but I can't make work some code that was given to me. My goal is to receive first a 33bytes message to identify the device and then start to receive 86bytes messages with information of the vehicle. require 'iodine' # define the protocol for our