|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StreamSocket
Interface of all stream sockets
| Method Summary | |
|---|---|
void |
close()
Close the socket |
java.lang.String |
getDetail()
Get details about the socket |
java.net.InetAddress |
getInetAddress()
Returns the address to which the socket is connected. |
java.io.InputStream |
getInputStream()
Get the socket's input stream |
java.net.InetAddress |
getLocalAddress()
Gets the local address to which the socket is bound. |
int |
getLocalPort()
Returns the local port to which this socket is bound. |
java.io.OutputStream |
getOutputStream()
Get the socket's output stream |
int |
getReceiveBufferSize()
Gets the value of SO_RCVBUF |
int |
getSendBufferSize()
Get value of the SO_SNDBUF option |
int |
getSoTimeout()
Returns setting for SO_TIMEOUT. |
boolean |
isConnected()
Is the socket connected? |
void |
setReceiveBufferSize(int size)
Sets the SO_RCVBUF option |
void |
setSendBufferSize(int size)
Sets the SO_SNDBUF option |
void |
setSoTimeout(int timeout)
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. |
| Method Detail |
|---|
void close()
throws java.io.IOException
java.io.IOExceptionboolean isConnected()
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException
void setSoTimeout(int timeout)
throws java.net.SocketException
timeout -
java.net.SocketException
int getSoTimeout()
throws java.net.SocketException
java.net.SocketException
java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionjava.net.InetAddress getLocalAddress()
int getLocalPort()
java.net.InetAddress getInetAddress()
int getReceiveBufferSize()
throws java.net.SocketException
java.net.SocketException
void setReceiveBufferSize(int size)
throws java.net.SocketException
java.net.SocketException
void setSendBufferSize(int size)
throws java.net.SocketException
java.net.SocketException
int getSendBufferSize()
throws java.net.SocketException
java.net.SocketExceptionjava.lang.String getDetail()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||