IP (1) 썸네일형 리스트형 [JAVA 자바] InetAddress 클래스 자바에서는 인터넷 주소에 관한 정보를 다루는 InetAddress클래스를 제공한다. 여기서 인터넷 주소에 관한 정보는 IP정보를 의미한다. InetAddress는 생성자가 없다. static클래스에서 정보를 받아오는 형식으로 사용한다. 주요 함수equals(InetAddress other) 현 객체가 other 객체와 같은 주소면 true, 아니면 false를 리턴getAddress() 주소를 나타내는 4개의 바이트 배열을 리턴getHostAddress() 주소 정보를 나타내는 String 리턴getHostName() 컴퓨터 이름을 나타내는 String 리턴 static 메소드 (InetAddress)getLocalHost() 현재 컴퓨터의 InetAddress객체를 리턴getByName(String h.. 이전 1 다음