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.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.IOException
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 bind(java.net.SocketAddress endpoint) throws java.io.IOException
java.io.IOException
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.