Reputation: 2030
I using watches and implementing some custom IoT logic. I'm using netty to receive connection from watch and store some data and everyting working fine with that approach. But I got new requirement to send some command to watch. In order to do that I can send command to already opened channel on Netty but with that approach I need to store somewhere map with imei and opened netty channel. Are there some solutions for that? Or probably this approach is fine...
Upvotes: 0
Views: 414
Reputation: 12787
Netty has DefaultChannelGroup for that. Also, you may create own ConcurrentHashMap
to hold required channels. Your question is not very clear, so It is hard to give the more precise answer.
Upvotes: 1