public class EchoClient {
private Socket socket;
public EchoClient(String url,int port){
try {
socket=new Socket(url, port);
System.out.println("Client:connected to"+url+":"+port);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
public static void main(String[] args) {
EchoClient client =new EchoClient("url", 10001);
client.start();
}
}main函数里这个url该怎么找啊,谢谢了
添加回答
举报
0/150
提交
取消