public interface StreamServerSocket
| Modifier and Type | Method and Description |
|---|---|
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.
|
StreamSocket acceptConnection() throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOExceptionvoid setSoTimeout(int timeout)
throws java.io.IOException
timeout - java.net.SocketExceptionjava.io.IOExceptionint getSoTimeout()
throws java.io.IOException
java.io.IOExceptionint getLocalPort()
java.net.InetAddress getInetAddress()
int getReceiveBufferSize()
throws java.net.SocketException
java.net.SocketExceptionvoid setReceiveBufferSize(int size)
throws java.net.SocketException
java.net.SocketExceptionvoid bind(java.net.SocketAddress endpoint) throws java.io.IOException
java.io.IOExceptionCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.