Android Socket 超时

   socket = new Socket();
   SocketAddress socAddress = new InetSocketAddress("127.0.0.1", 12345); 
   socket.connect(socAddress, 5000); //超时时间!

  



posted @ 2019-12-20 08:36  @王新@  阅读(899)  评论(0编辑  收藏  举报