|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.net.DatagramSocketImpl
public abstract class 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 - ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ Throw°¡ º¸ÁõµÇ´Â °ÍÀº ¾Æ´Ï´Ù
protected void connect(InetAddress address,
int port)
throws SocketException
¼ÒÄÏÀ» Á¢¼ÓÇÏ´Â ¸®¸ðÆ® Á¢¼Óó°¡ Á¸ÀçÇÏÁö ¾Ê´Â°¡ µµ´Þ ºÒ°¡´ÉÀÇ °æ¿ì ¹× ±× ÁÖ¼Ò¿¡ ´ëÇÑ ICMP Àü¼Ûó µµ´Þ ºÒ°¡´É ÆÐŶÀ» ¼ö½ÅÇßÀ» °æ¿ì´Â ÀÌÈÄÀÇ ¼Û½Å ¶Ç´Â ¼ö½Å È£Ãâ·Î PortUnreachableException°¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. ¿¹¿Ü°¡ Throw µÈ´Ù°í ÇÏ´Â º¸ÁõÀÌ ÀÖ´Â °ÍÀº ¾Æ´Õ´Ï´Ù.
address - Á¢¼ÓóÀÇ ¸®¸ðÆ® InetAddressport - ¸®¸ðÆ® Æ÷Æ® ¹øÈ£
SocketException - ¼ÒÄÏÀ» ¸®¸ðÆ® Á¢¼Ó ¸ÕÀú Á¢¼ÓÇÒ ¼ö ¾ø´Â °æ¿ì¿¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ´Âprotected void disconnect()
protected abstract int peek(InetAddress i)
throws IOException
i - InetAddress °´Ã¼
IOException - ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException - ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ Throw°¡ º¸ÁõµÇ´Â °ÍÀº ¾Æ´Ï´Ù
protected abstract int peekData(DatagramPacket p)
throws IOException
p - ¼ö½ÅÇÑ ÆÐŶ
IOException - ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException - ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ Throw°¡ º¸ÁõµÇ´Â °ÍÀº ¾Æ´Ñ
protected abstract void receive(DatagramPacket p)
throws IOException
p - ¼ö½ÅÇÑ ÆÐŶ
IOException - µ¥ÀÌÅÍ ±×·¥ ÆÐŶÀÇ ¼ö½ÅÁß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
PortUnreachableException - ÇöÀç µµ´Þ ºÒ°¡´ÉÇÑ Á¢¼Ó ¸ÕÀú ¼ÒÄÏÀÌ Á¢¼ÓµÇ´Â °æ¿ì¿¡ ¹ß»ýµÇ´Â ÀÏÀÌ ÀÖ´Ù. ¿¹¿ÜÀÇ Throw°¡ º¸ÁõµÇ´Â °ÍÀº ¾Æ´Ï´Ù
@Deprecated
protected abstract void setTTL(byte ttl)
throws IOException
ttl - TTL Ä¡¸¦ ÁöÁ¤ÇÏ´Â ¹ÙÀÌÆ®
IOException - À¯È¿±â°£ ¿É¼ÇÀ» ¼³Á¤Áß¿¡ ÀÔÃâ·Â ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìgetTTL()
@Deprecated
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 Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.