阅读背景:

UDP服务器在python中解析JSON对象的数据结构

来源:互联网 

I have a UDP server listening to incoming traffic in a thread. The messages come from an external device in JSON format, for example, {"_id": "0x00", "status": "on"}. This information needs to be parsed by ther UDP handler and stored in a dict of objects (or update if the _id exists) At the moment I can receive and parse JSON, but not entierly sure how to store this data or handle it correctly. I would like to use a Queue in the UDP Handler and a separate Msg Handler that processes the queue but not sure if it's the right way of doing it.I have a UDP server listening to incoming traff




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: