|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StreamServerSocket
Description
| Method Summary | |
|---|---|
StreamSocket |
acceptConnection()
Accept a connection on this socket |
void |
bind(java.net.SocketAddress endpoint)
|
void |
close()
Close the socket |
java.net.InetAddress |
getInetAddress()
Returns the address to which the socket is connected. |
int |
getLocalPort()
Returns the local port to which this socket is bound. |
int |
getReceiveBufferSize()
Gets the value of SO_RCVBUF |
int |
getSoTimeout()
Returns setting for SO_TIMEOUT. |
void |
setReceiveBufferSize(int size)
Sets the SO_RCVBUF option |
void |
setSoTimeout(int timeout)
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. |
| Method Detail |
|---|
StreamSocket acceptConnection()
throws java.io.IOException
java.io.IOException
void close()
throws java.io.IOException
java.io.IOException
void setSoTimeout(int timeout)
throws java.io.IOException
timeout -
java.net.SocketException
java.io.IOException
int getSoTimeout()
throws java.io.IOException
java.io.IOExceptionint 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 bind(java.net.SocketAddress endpoint)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||