Socket Server with multiple client in java

后端 未结 2 1273
野的像风
野的像风 2021-01-22 02:35

I have to create a socket server which will listen to multiple client. Suppose there are 6 clients connected to the server at the same time and each of the clients are sending s

2条回答
  •  轮回少年
    2021-01-22 03:02

    Any reason you can't use a servlet container to do this? This is 10 lines of code in a Servlet + Tomcat/Jetty.

提交回复
热议问题