4 Replies Latest reply: Jul 9, 2012 3:04 AM by tmazight RSS

    NIO Server with two port


      I'm building a server with NIO ServerSocketChannel , this server have 2 ports for clients connections,

      what is the best solution, to make a Selector for each port, or a Selector for both ports?

      If the server is in non blocking mode, and the client for sending data uses the blocking sockets, can this cause any problems?


      Edited by: tmazight on Jul 8, 2012 8:23 PM