Can i create multiple sockets in java?

2019-09-25 12:13发布

Can i create multiple sockets in java one for listening from a client and others for forwarding data to back-end servers? I have done the program of multi-threaded server which is echoing the messages of client coming on a specific port..Specifically i want to take input from one socket and forward it to another socket in same program, in this scenario one socket which will act as a server for a client and another socket which will be client for another server.

标签: java c#
1条回答
The star\"
2楼-- · 2019-09-25 12:46

Yes. You can support multiple sockets in one application.

查看更多
登录 后发表回答