Home  >  Q&A  >  body text

java-scoket-while - Java scoket服务端接口

scoket服务端接口是如何发布的,这个发布是什么意思,如何发布?

伊谢尔伦伊谢尔伦2744 days ago495

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 10:51:32

    socket, don’t make a mistake
    For the server, you need to use the ServerSocket class. One of the constructors is
    server = new ServerSocket(port);
    Then call Socket client = server.accept(); when there is a new socket connection, you can return a client's socket connection object. If you don’t understand, you can ask

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:51:32

    Publishing means that the client can access it through the port,
    server = new ServerSocket(port) means publishing

    reply
    0
  • Cancelreply