|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.net.DatagramSocketImpl
Ãß»ó µ¥ÀÌÅÍ ±×·¥ ¹× ¸ÖƼ ij½ºÆ® ¼ÒÄÏÀ» ±¸ÇöÇÏ´Â base classÀÔ´Ï´Ù.
ÇʵåÀÇ °³¿ä | |
protected FileDescriptor |
fd
ÆÄÀÏ ±â¼úÀÚ ¿ÀºêÁ§Æ®ÀÔ´Ï´Ù. |
protected int |
localPort
·ÎÄà Æ÷Åä ¹øÈ£ÀÔ´Ï´Ù. |
ÀÎÅÍÆäÀ̽º java.net. SocketOptions ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
IP_MULTICAST_IF , IP_MULTICAST_IF2 , IP_MULTICAST_LOOP , IP_TOS , SO_BINDADDR , SO_BROADCAST , SO_KEEPALIVE , SO_LINGER , SO_OOBINLINE , SO_RCVBUF , SO_REUSEADDR , SO_SNDBUF , SO_TIMEOUT , TCP_NODELAY |
»ý¼ºÀÚÀÇ °³¿ä | |
DatagramSocketImpl ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
protected abstract void |
bind (int lport,
InetAddress laddr)
µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀ» ·ÎÄÃÀÇ Æ÷Åä ¹× ÁÖ¼Ò¿¡ ¹ÙÀεå ÇÕ´Ï´Ù. |
protected abstract void |
close ()
¼ÒÄÏÀ» ´Ý½À´Ï´Ù. |
protected void |
connect (InetAddress address,
int port)
µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀ» ¸®¸ðÆ® Á¢¼Ó ¸ÕÀú Á¢¼ÓÇÕ´Ï´Ù. |
protected abstract void |
create ()
µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀ» ÀÛ¼ºÇÕ´Ï´Ù. |
protected void |
disconnect ()
¸®¸ðÆ® Á¢¼Óó·ÎºÎÅÍ µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀ» ¶¼¾î³À´Ï´Ù. |
protected FileDescriptor |
getFileDescriptor ()
µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀÇ ÆÄÀÏ ±â¼úÀÚ¸¦ ÃëµæÇÕ´Ï´Ù. |
protected int |
getLocalPort ()
·ÎÄà Æ÷Å並 ÃëµæÇÕ´Ï´Ù. |
protected abstract int |
getTimeToLive ()
TTL (À¯È¿±â°£) ¿É¼ÇÀ» ÃëµæÇÕ´Ï´Ù. |
protected abstract byte |
getTTL ()
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡ getTimeToLive ¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä. |
protected abstract void |
join (InetAddress inetaddr)
¸ÖƼ ij½ºÆ® ±×·ì¿¡ Âü°¡ÇÕ´Ï´Ù. |
protected abstract void |
joinGroup (SocketAddress mcastaddr,
NetworkInterface netIf)
¸ÖƼ ij½ºÆ® ±×·ì¿¡ Âü°¡ÇÕ´Ï´Ù. |
protected abstract void |
leave (InetAddress inetaddr)
¸ÖƼ ij½ºÆ® ±×·ìÀ¸·ÎºÎÅÍ ¸Ö¾îÁý´Ï´Ù. |
protected abstract void |
leaveGroup (SocketAddress mcastaddr,
NetworkInterface netIf)
¸ÖƼ ij½ºÆ® ±×·ìÀ¸·ÎºÎÅÍ ¸Ö¾îÁý´Ï´Ù. |
protected abstract int |
peek (InetAddress i)
ÆÐŶÀ» Á¶»çÇØ, ÆÐŶÀÇ ¼Û½ÅÀÚ¸¦ È®ÀÎÇÕ´Ï´Ù. |
protected abstract int |
peekData (DatagramPacket p)
ÆÐŶÀ» Á¶»çÇØ, ÆÐŶÀÇ ¼Û½ÅÀÚ¸¦ È®ÀÎÇÕ´Ï´Ù. |
protected abstract void |
receive (DatagramPacket p)
µ¥ÀÌÅÍ ±×·¥ ÆÐŶÀ» ¼ö½ÅÇÕ´Ï´Ù. |
protected abstract void |
send (DatagramPacket p)
µ¥ÀÌÅÍ ±×·¥ ÆÐŶÀ» ¼Û½ÅÇÕ´Ï´Ù. |
protected abstract void |
setTimeToLive (int ttl)
TTL (À¯È¿±â°£) ¿É¼ÇÀ» ¼³Á¤ÇÕ´Ï´Ù. |
protected abstract void |
setTTL (byte ttl)
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡ setTimeToLive ¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÀÎÅÍÆäÀ̽º java.net. SocketOptions ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getOption , setOption |
ÇʵåÀÇ »ó¼¼ |
protected int localPort
protected FileDescriptor fd
»ý¼ºÀÚÀÇ »ó¼¼ |
public DatagramSocketImpl()
¸Þ¼ÒµåÀÇ »ó¼¼ |
protected abstract void create() throws SocketException
SocketException
- ±âº»ÀÌ µÇ´Â ÇÁ·ÎÅäÄÝ·Î TCP ¿¡·¯µîÀÇ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void bind(int lport, InetAddress laddr) throws SocketException
lport
- ·ÎÄà Æ÷Åäladdr
- ·ÎÄÃ ÁÖ¼Ò
SocketException
- ±âº»ÀÌ µÇ´Â ÇÁ·ÎÅäÄÝ·Î TCP ¿¡·¯µîÀÇ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void send(DatagramPacket p) throws IOException
p
- ¼Û½ÅµÇ´Â ÆÐŶ
IOException
- µ¥ÀÌÅÍ ±×·¥ ÆÐŶÀÇ ¼Û½ÅÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException
- ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ½½·Î¿ì µÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ ½½·Î¿ì°¡ ÇÁ·ÎÅØ¼ÇµÇ´Â °ÍÀº ¾Æ´Ï´Ùprotected void connect(InetAddress address, int port) throws SocketException
¼ÒÄÏÀ» Á¢¼ÓÇÏ´Â ¸®¸ðÆ® Á¢¼Óó°¡ Á¸ÀçÇÏÁö ¾Ê´Â°¡ µµ´Þ ºÒ°¡´ÉÀÇ °æ¿ì, ¹× ±× ÁÖ¼Ò¿¡ ´ëÇÑ ICMP Àü¼Ûó µµ´Þ ºÒ´É ÆÐŶÀ» ¼ö½ÅÇßÀ» °æ¿ì´Â ÀÌÈÄÀÇ ¼Û½Å ¶Ç´Â ¼ö½Å È£Ãâ·Î PortUnreachableException °¡ ½½·Î¿ì µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. ¿¹¿Ü°¡ ½½·Î¿ì µÈ´Ù°í ÇÏ´Â ÇÁ·ÎÅØ¼ÇÀÌ ÀÖ´Â °ÍÀº ¾Æ´Õ´Ï´Ù.
address
- Á¢¼ÓóÀÇ ¸®¸ðÆ® InetAddressport
- ¸®¸ðÆ® Æ÷Åä ¹øÈ£
SocketException
- ¼ÒÄÏÀ» ¸®¸ðÆ® Á¢¼Ó ¸ÕÀú Á¢¼ÓÇÒ ¼ö ¾ø´Â °æ¿ì¿¡ ½½·Î¿ì µÇ´Â ÀÏÀÌ ÀÖ´Âprotected void disconnect()
protected abstract int peek(InetAddress i) throws IOException
i
- InetAddress ¿ÀºêÁ§Æ®
IOException
- ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException
- ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ½½·Î¿ì µÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ ½½·Î¿ì°¡ ÇÁ·ÎÅØ¼ÇµÇ´Â °ÍÀº ¾Æ´Ï´Ùprotected abstract int peekData(DatagramPacket p) throws IOException
p
- ¼ö½ÅÇÑ ÆÐŶ
IOException
- ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException
- ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ½½·Î¿ì µÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ ½½·Î¿ì°¡ ÇÁ·ÎÅØ¼ÇµÇ´Â °ÍÀº ¾Æ´Ñprotected abstract void receive(DatagramPacket p) throws IOException
p
- ¼ö½ÅÇÑ ÆÐŶ
IOException
- µ¥ÀÌÅÍ ±×·¥ ÆÐŶÀÇ ¼ö½ÅÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException
- ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ½½·Î¿ì µÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ ½½·Î¿ì°¡ ÇÁ·ÎÅØ¼ÇµÇ´Â °ÍÀº ¾Æ´Ï´Ùprotected abstract void setTTL(byte ttl) throws IOException
ttl
- TTL Ä¡¸¦ ÁöÁ¤ÇÏ´Â ¹ÙÀÌÆ®
IOException
- À¯È¿±â°£ ¿É¼ÇÀ» ¼³Á¤Áß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìgetTTL()
protected abstract byte getTTL() throws IOException
IOException
- À¯È¿±â°£ ¿É¼ÇÀ» ÃëµæÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìsetTTL(byte)
protected abstract void setTimeToLive(int ttl) throws IOException
ttl
- À¯È¿±â°£Ä¡¸¦ ÁöÁ¤ÇÏ´Â int
IOException
- À¯È¿±â°£ ¿É¼ÇÀ» ¼³Á¤Áß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìgetTimeToLive()
protected abstract int getTimeToLive() throws IOException
IOException
- À¯È¿±â°£ ¿É¼ÇÀ» ÃëµæÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìsetTimeToLive(int)
protected abstract void join(InetAddress inetaddr) throws IOException
inetaddr
- Âü°¡¿¡ »ç¿ëÇÏ´Â ÁÖ¼Ò
IOException
- ¸ÖƼ ij½ºÆ® ±×·ìÀÇ Âü°¡Áß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void leave(InetAddress inetaddr) throws IOException
inetaddr
- ¶³¾îÁö´Â ¸ÖƼ ij½ºÆ® ÁÖ¼Ò
IOException
- ¸ÖƼ ij½ºÆ® ±×·ìÀÇ Åð°ÅÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) throws IOException
mcastaddr
- Âü°¡¿¡ »ç¿ëÇÏ´Â ÁÖ¼ÒnetIf
- ¸ÖƼ ij½ºÆ® µ¥ÀÌÅÍ ±×·¥ ÆÐŶÀ» ¼ö½ÅÇÏ´Â ·ÎÄà ÀÎÅÍÆäÀ̽º¸¦ ÁöÁ¤
IOException
- ¸ÖƼ ij½ºÆ® ±×·ìÀÇ Âü°¡Áß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) throws IOException
mcastaddr
- ¶³¾îÁö´Â ÁÖ¼ÒnetIf
- ±×·ìÀ» ¶°³ª´Â ·ÎÄà ÀÎÅÍÆäÀ̽º¸¦ ÁöÁ¤
IOException
- ¸ÖƼ ij½ºÆ® ±×·ìÀÇ Åð°ÅÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void close()
protected int getLocalPort()
protected FileDescriptor getFileDescriptor()
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.