socket和servletSocket的交互
ServerSocket(int port) 是服务端绑定port端口,调accept()监听等待客户端连接,它返回一个连接队列中的一个socket。
Socket(InetAddress address , int port)是创建客户端连接主机的socket流,其中InetAddress是用来记录主机的类,port指定端口。

相关文章:

  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-12-19
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-06-06
  • 2022-03-08
  • 2021-08-19
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
相关资源
相似解决方案