-2

Two Sockets so that a serve two different task simultaneously without threading to the same client

1 Answers1

0

Yes. Typically, they would use different local ports to access the same server. If you want to do that without threads, you should use SocketChannel and configure it for non-blocking IO. However, non-blocking IO is more complicated to use.

Steve11235
  • 2,849
  • 1
  • 17
  • 18