JavaTM 2 Platform
Standard Ed. 5.0

Ŭ·¡½º
java.net.UnknownHostException »ç¿ë

UnknownHostException À» »ç¿ëÇÏ°í ÀÖ´Â ÆÐÅ°Áö
java.net ³×Æ®¿öÅ© ¾îÇø®ÄÉÀ̼ÇÀÇ ±¸ÇöÀ» À§ÇÑ Å¬·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.  
javax.net ³×Æ®¿öÅ© ¾îÇø®ÄÉÀ̼ÇÀ» À§ÇÑ Å¬·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.  
javax.net.ssl ½ÃÅ¥¾î ¼ÒÄÏ ÆÐÅ°ÁöÀÇ Å¬·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.  
 

java.net ¿¡¼­ÀÇ UnknownHostException »ç¿ë
 

UnknownHostException¸¦ Throw ÇÏ´Â java.net ¸Þ¼­µå
static InetAddress [] InetAddress. getAllByName (String  host)
          È£½ºÆ®¸íÀ» ÁöÁ¤Çϸé, ½Ã½ºÅÛÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â ³×ÀÓ ¼­ºñ½º¿¡ ±Ù°ÅÇØ ±× IP ÁÖ¼ÒÀÇ ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
static InetAddress InetAddress. getByAddress (byte[] addr)
          ±×´ë·ÎÀÇ IP ÁÖ¼Ò¸¦ °¡Áö´Â InetAddress °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static InetAddress InetAddress. getByAddress (String  host, byte[] addr)
          ÁöÁ¤µÈ È£½ºÆ®¸í ¹× IP ÁÖ¼Ò¿¡ ±Ù°ÅÇØ InetAddress¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static Inet6Address Inet6Address. getByAddress (String  host, byte[] addr, int scope_id)
          InetAddress.getByAddress(String, byte[]) ¿Í °°°ÔÀÇÇØ Inet6Address¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static Inet6Address Inet6Address. getByAddress (String  host, byte[] addr, NetworkInterface  nif)
          InetAddress.getByAddress(String, byte[]) ¿Í °°°ÔÀÇÇØ Inet6Address¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static InetAddress InetAddress. getByName (String  host)
          ÁöÁ¤µÈ È£½ºÆ®¸íÀ» °¡Áö´Â È£½ºÆ®ÀÇ IP ÁÖ¼Ò¸¦ ÃëµæÇÕ´Ï´Ù.
static InetAddress InetAddress. getLocalHost ()
          ·ÎÄà ȣ½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

UnknownHostException¸¦ Throw ÇÏ´Â java.net constructor¡¡ ¡¡
Socket (String  host, int port)
          ½ºÆ®¸² ¼ÒÄÏÀ» ÀÛ¼ºÇØ, ÁöÁ¤µÈ È£½ºÆ®»óÀÇ ÁöÁ¤µÈ Æ÷Æ® ¹øÈ£¿¡ Á¢¼ÓÇÕ´Ï´Ù.
 

javax.net ¿¡¼­ÀÇ UnknownHostException »ç¿ë
 

UnknownHostException¸¦ Throw ÇÏ´Â javax.net ¸Þ¼­µå
abstract  Socket SocketFactory. createSocket (String  host, int port)
          ¼ÒÄÏÀ» ÀÛ¼ºÇØ, ÁöÁ¤µÈ ¸®¸ðÆ® Æ÷Æ®»óÀÇ ÁöÁ¤µÈ ¸®¸ðÆ® È£½ºÆ®¿¡°Ô Á¢¼ÓÇÕ´Ï´Ù.
abstract  Socket SocketFactory. createSocket (String  host, int port, InetAddress  localHost, int localPort)
          ¼ÒÄÏÀ» ÀÛ¼ºÇØ, ÁöÁ¤µÈ ¸®¸ðÆ® Æ÷Æ®»óÀÇ ÁöÁ¤µÈ ¸®¸ðÆ® È£½ºÆ®¿¡°Ô Á¢¼ÓÇÕ´Ï´Ù.
 

javax.net.ssl ¿¡¼­ÀÇ UnknownHostException »ç¿ë
 

UnknownHostException¸¦ Throw ÇÏ´Â javax.net.ssl constructor¡¡ ¡¡
SSLSocket (String  host, int port)
          ¼­ºê Ŭ·¡½º¿¡¼­¸¸ »ç¿ëµË´Ï´Ù.
SSLSocket (String  host, int port, InetAddress  clientAddress, int clientPort)
          ¼­ºê Ŭ·¡½º¿¡¼­¸¸ »ç¿ëµË´Ï´Ù.
 


JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.