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