|
||||||||||
| 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 |
java.lang.String |
getRemoteHost()
Get the actual hostname |
int |
getSendBufferSize()
Get value of the SO_SNDBUF option |
int |
getSoTimeout()
Returns setting for SO_TIMEOUT. |
boolean |
isConnected()
Is the socket connected? |
boolean |
isSecureMode()
Is this socket in secure mode? |
void |
setReceiveBufferSize(int size)
Sets the SO_RCVBUF option |
void |
setRemoteHost(java.lang.String remoteHost)
Set the remote hostname |
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()
java.lang.String getRemoteHost()
void setRemoteHost(java.lang.String remoteHost)
remoteHost - remote hostname
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.SocketExceptionboolean isSecureMode()
java.lang.String getDetail()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||