求解谢谢!!
public class CsynchronousOne
{
private static final int PORT = 9000;
private static final String Ip = "192.168.123.17";
public static void main(String[] args)
{
try {
Socket socket = new Socket(Ip, PORT);
System.out.println("我是异步first"+socket.getPort());
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
异步通信我这样写为什么不对呢?