Thursday, 15 May 2014

java - How to manage list of clients to send data in netty -



java - How to manage list of clients to send data in netty -

a similar question might have been asked, indeed different question: how send nessage client in netty

i have started netty , asynchronous i/o.

i want map clients string. when client connected server sends id-string , want save string client's socket/channel map. after when want send message client, client's socket/channel map id , send it.

is possible implement myself in way: create clientdata class variables id-string , channelhandlercontext object.

in channelhandler channelread method add together map, , remove map somewhere else.

or there other way in netty? recommend problem?

any help appreciated!

yes should do. having concurrentmap , lookup stuff.

java sockets netty tcp-ip

No comments:

Post a Comment