Android Socket 超时

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

  



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