Java Socket服务器端与客户端的编程步骤总结

一,InetAddress类:html InetAddress类没有构造方法,因此不能直接new出一个对象;java 能够经过InetAddress类的静态方法得到InetAddress的对象; InetAddress.getLocalHost(); InetAddress.getByName(""); 类主要方法: String - address.getHostName(); String -
相关文章
相关标签/搜索