This discussion is archived
4 Replies Latest reply: Jul 9, 2012 1:04 AM by tmazight RSS

NIO Server with two port

tmazight Newbie
Currently Being Moderated
Hi,

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?

thx

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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points