I am developing an android application where it has to talk to multiple TCP based servers in run time. Now i am using java sockets to communicate and threads to handle multiple clients. But there is a requirement in application that we need to talk to more numbers of servers in run time. So i am using the concept of Java NIO with selectors to handle multiple servers at a time. But the problem now i am facing is that i am not able to communicate with any of the servers. So please any one suggest can i use selector at client side.
问问题
244 次