|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.net.SocketImpl
Ãß»ó Ŭ·¡½º SocketImpl
´Â ¼ÒÄÏÀ» ½ÇÁ¦·Î ±¸ÇöÇÏ´Â ¸ðµç Ŭ·¡½º¿¡ °øÅëÀÇ ½´ÆÛ Ŭ·¡½ºÀÔ´Ï´Ù. Ŭ¶óÀÌ¾ðÆ® ¼ÒÄϰú ¼¹ö ¼ÒÄÏÀÇ ¾çÂÊ ¸ðµÎ¸¦ ÀÛ¼ºÇÒ ¶§¿¡ »ç¿ëµË´Ï´Ù.
¡¸ÇÁ·¹ÀÎÀΡ¹¼ÒÄÏÀº °¢ ¸Þ¼Òµå¸¦ ±â¼ú´ë·Î ±¸ÇöÇÕ´Ï´Ù. ÆÄÀÌ¾î ¿ù(fire wall)³ª ÇÁ·Ï½Ã´Â »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.
ÇʵåÀÇ °³¿ä | |
protected InetAddress |
address
ÀÌ ¼ÒÄÏÀÇ ¸®¸ðÆ®ÃøÀÇ IP ÁÖ¼ÒÀÔ´Ï´Ù. |
protected FileDescriptor |
fd
ÀÌ ¼ÒÄÏÀÇ ÆÄÀÏ ±â¼úÀÚ ¿ÀºêÁ§Æ®ÀÔ´Ï´Ù. |
protected int |
localport
ÀÌ ¼ÒÄÏÀÇ Á¢¼ÓóÀÇ ·ÎÄà Æ÷Åä ¹øÈ£ÀÔ´Ï´Ù. |
protected int |
port
ÀÌ ¼ÒÄÏÀÇ Á¢¼ÓóÀÇ ¸®¸ðÆ® È£½ºÆ®»ó¿¡ ÀÖ´Â Æ÷Åä ¹øÈ£ÀÔ´Ï´Ù. |
ÀÎÅÍÆäÀ̽º 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 |
»ý¼ºÀÚÀÇ °³¿ä | |
SocketImpl ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
protected abstract void |
accept (SocketImpl s)
Á¢¼ÓÀ» ¹Þ¾ÆµéÀÔ´Ï´Ù. |
protected abstract int |
available ()
ÀÌ ¼ÒÄÏÀ¸·ÎºÎÅÍ ºí·Ï¾øÀÌ ÀоîµéÀÏ ¼ö ÀÖ´Â ¹ÙÀÌÆ®¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected abstract void |
bind (InetAddress host,
int port)
ÁöÁ¤µÈ È£½ºÆ®»óÀÇ ÁöÁ¤µÈ Æ÷Åä ¹øÈ£¿¡ ÀÌ ¼ÒÄÏÀ» ¹ÙÀεå ÇÕ´Ï´Ù. |
protected abstract void |
close ()
ÀÌ ¼ÒÄÏÀ» ´Ý½À´Ï´Ù. |
protected abstract void |
connect (InetAddress address,
int port)
ÁöÁ¤µÈ È£½ºÆ®»óÀÇ ÁöÁ¤µÈ Æ÷Åä¿¡ ÀÌ ¼ÒÄÏÀ» Á¢¼ÓÇÕ´Ï´Ù. |
protected abstract void |
connect (SocketAddress address,
int timeout)
ÁöÁ¤µÈ È£½ºÆ®ÀÇ ÁöÁ¤µÈ Æ÷Åä ¹øÈ£¿¡ ÀÌ ¼ÒÄÏÀ» Á¢¼ÓÇÕ´Ï´Ù. |
protected abstract void |
connect (String host,
int port)
ÁöÁ¤µÈ È£½ºÆ®»óÀÇ ÁöÁ¤µÈ Æ÷Åä¿¡ ÀÌ ¼ÒÄÏÀ» Á¢¼ÓÇÕ´Ï´Ù. |
protected abstract void |
create (boolean stream)
½ºÆ®¸² ¼ÒÄÏ ¶Ç´Â µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀ» ÀÛ¼ºÇÕ´Ï´Ù. |
protected FileDescriptor |
getFileDescriptor ()
ÀÌ ¼ÒÄÏÀÇ fd ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected InetAddress |
getInetAddress ()
ÀÌ ¼ÒÄÏÀÇ address ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected abstract InputStream |
getInputStream ()
ÀÌ ¼ÒÄÏÀÇ ÀÔ·Â ½ºÆ®¸²À» µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getLocalPort ()
ÀÌ ¼ÒÄÏÀÇ localport ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected abstract OutputStream |
getOutputStream ()
ÀÌ ¼ÒÄÏÀÇ Ãâ·Â ½ºÆ®¸²À» µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getPort ()
ÀÌ ¼ÒÄÏÀÇ port ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected abstract void |
listen (int backlog)
¼ö½ÅÇÏ´Â Á¢¼Ó (Á¢¼Ó ¿ä±¸)À» ³Ö´Â Å¥ÀÇ ÃÖ´ëÀåÀ», count ÀμöÀÇ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
protected abstract void |
sendUrgentData (int data)
¼ÒÄÏ»óÀÇ 1 ¹ÙÀÌÆ®ÀÇ ±ä±Þ µ¥ÀÌÅ͸¦ ¼Û½ÅÇÕ´Ï´Ù. |
protected void |
shutdownInput ()
ÀÌ ¼ÒÄÏÀÇ ÀÔ·Â ½ºÆ®¸²À» ¡¸½ºÆ®¸²ÀÇ ÃÖÈÄ¡¹¿¡ ¹èÄ¡ÇÕ´Ï´Ù. |
protected void |
shutdownOutput ()
ÀÌ ¼ÒÄÏÀÇ Ãâ·Â ½ºÆ®¸²À» ¹«È¿·Î ÇÕ´Ï´Ù. |
protected boolean |
supportsUrgentData ()
ÀÌ SocketImpl °¡ ±ä±Þ µ¥ÀÌÅÍÀÇ ¼Û½ÅÀ» ¼Æ÷Æ®Çϰí ÀÖÀ»Áö ¾î¶³Áö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
String |
toString ()
ÀÌ ¼ÒÄÏÀÇ ÁÖ¼Ò¿Í Æ÷Å並 String ·Î¼ µ¹·ÁÁÝ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÀÎÅÍÆäÀ̽º java.net. SocketOptions ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getOption , setOption |
ÇʵåÀÇ »ó¼¼ |
protected FileDescriptor fd
protected InetAddress address
protected int port
protected int localport
»ý¼ºÀÚÀÇ »ó¼¼ |
public SocketImpl()
¸Þ¼ÒµåÀÇ »ó¼¼ |
protected abstract void create(boolean stream) throws IOException
stream
- true
¸¦ ÁöÁ¤ÇßÀ» °æ¿ì´Â ½ºÆ®¸² ¼ÒÄÏÀÌ ÀÛ¼ºµÇ¾î ±×·¸Áö ¾ÊÀº °æ¿ì´Â µ¥ÀÌÅÍ ±×·¥ ¼ÒÄÏÀÌ ÀÛ¼ºµÈ´Ù
IOException
- ¼ÒÄÏÀÇ »ý¼ºÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void connect(String host, int port) throws IOException
host
- ¸®¸ðÆ® È£½ºÆ®¸íport
- Æ÷Åä ¹øÈ£
IOException
- ¸®¸ðÆ® È£½ºÆ®¿¡ÀÇ Á¢¼ÓÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void connect(InetAddress address, int port) throws IOException
address
- ¸®¸ðÆ® È£½ºÆ®ÀÇ IP ÁÖ¼Òport
- Æ÷Åä ¹øÈ£
IOException
- Á¢¼ÓÀÇ ½ÃÇàÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void connect(SocketAddress address, int timeout) throws IOException
address
- ¸®¸ðÆ® È£½ºÆ®ÀÇ ¼ÒÄÏ ÁÖ¼Òtimeout
- ŸÀÓ ¾Æ¿ôÄ¡ (¹Ð¸® ¼¼ÄÁµå). ŸÀÓ ¾Æ¿ô ¾øÀ½ÀÇ °æ¿ì´Â 0
IOException
- Á¢¼ÓÀÇ ½ÃÇàÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void bind(InetAddress host, int port) throws IOException
host
- ¸®¸ðÆ® È£½ºÆ®ÀÇ IP ÁÖ¼Òport
- Æ÷Åä ¹øÈ£
IOException
- ÀÌ ¼ÒÄÏÀ» ¹ÙÀεå ÇÒ °æ¿ì¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void listen(int backlog) throws IOException
count
ÀμöÀÇ °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. Å¥°¡ ¸Þ¿öÁö°í ÀÖÀ» ¶§ Á¢¼Ó ¿ä±¸°¡ ÀÖÀ¸¸é(ÀÚ), Á¢¼ÓÀº °ÅºÎµË´Ï´Ù.
backlog
- Å¥ÀÇ ÃÖ´ëÀå
IOException
- Å¥ÀÇ »ý¼ºÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void accept(SocketImpl s) throws IOException
s
- ¹Þ¾ÆµéÀÌ´Â Á¢¼Ó
IOException
- Á¢¼ÓÀÇ ¼ö¶ôÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract InputStream getInputStream() throws IOException
IOException
- ÀÔ·Â ½ºÆ®¸²ÀÇ ÀÛ¼ºÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract OutputStream getOutputStream() throws IOException
IOException
- Ãâ·Â ½ºÆ®¸²ÀÇ ÀÛ¼ºÁß¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract int available() throws IOException
IOException
- ÀÌ¿ëÇÒ ¼ö ÀÖ´Â ¹ÙÀÌÆ®¼öÀÇ °áÁ¤½Ã¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected abstract void close() throws IOException
IOException
- ÀÌ ¼ÒÄÏÀ» ´ÝÀ» ¶§ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void shutdownInput() throws IOException
IOException
- ÀÌ ¼ÒÄÏÀ» Á¤ÁöÇÒ °æ¿ì¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìSocket.shutdownOutput()
,
Socket.close()
,
Socket.setSoLinger(boolean, int)
protected void shutdownOutput() throws IOException
IOException
- ÀÌ ¼ÒÄÏÀ» Á¤ÁöÇÒ °æ¿ì¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìSocket.shutdownInput()
,
Socket.close()
,
Socket.setSoLinger(boolean, int)
protected FileDescriptor getFileDescriptor()
fd
ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù.
fd
ÇʵåÄ¡fd
protected InetAddress getInetAddress()
address
ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù.
address
ÇʵåÄ¡address
protected int getPort()
port
ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù.
port
ÇʵåÄ¡port
protected boolean supportsUrgentData()
address
protected abstract void sendUrgentData(int data) throws IOException
data
- ¼Û½ÅÇÏ´Â µ¥ÀÌÅÍÀÇ ¹ÙÀÌÆ®
IOException
- µ¥ÀÌÅ͸¦ ¼Û½ÅÇÒ °æ¿ì¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected int getLocalPort()
localport
ÇʵåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù.
localport
ÇʵåÄ¡localport
public String toString()
String
·Î¼ µ¹·ÁÁÝ´Ï´Ù.
Object
³»ÀÇ toString
|
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.