发送请求到设备使用Netty。

huangapple go评论114阅读模式
英文:

Send request to Devices using Netty

问题

什么是在一定间隔内持续向多个物联网设备发送请求并使用Netty获取响应的最佳方法。

英文:

What's the best approach to continuously and within a certain interval send request and get response to several IoT Devices using Netty.

答案1

得分: 0

Netty的IdleStateHandler会在通道(channel)一段时间内没有读取或写入数据时,安排发送IdleStateEvents。对你来说,这应该是一个很好的起点。链接:https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java

英文:

Netty's IdleStateHandler schedules IdleStateEvents to be sent when a channel hasn't read or written data in a while. Should be a good starting point for you https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java

huangapple
  • 本文由 发表于 2020年8月17日 11:34:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/63444213.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定