class StandardServerSocket extends ServerSocket
Constructor and Description |
---|
StandardServerSocket(I2PServerSocketFull socket)
Doesn't really throw IOE but super() does
|
Modifier and Type | Method and Description |
---|---|
Socket |
accept() |
void |
bind(SocketAddress endpoint) |
void |
bind(SocketAddress endpoint,
int backlog) |
void |
close() |
ServerSocketChannel |
getChannel() |
InetAddress |
getInetAddress() |
int |
getLocalPort() |
SocketAddress |
getLocalSocketAddress()
Port in returned SocketAddress will be zero.
|
int |
getReceiveBufferSize() |
boolean |
getReuseAddress() |
int |
getSoTimeout() |
boolean |
isBound() |
boolean |
isClosed() |
void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Does nothing.
|
void |
setReceiveBufferSize(int size)
Does nothing.
|
void |
setReuseAddress(boolean on)
Does nothing.
|
void |
setSoTimeout(int timeout) |
String |
toString() |
implAccept, setSocketFactory
StandardServerSocket(I2PServerSocketFull socket) throws IOException
IOException
public Socket accept() throws IOException
accept
in class ServerSocket
IOException
public void bind(SocketAddress endpoint)
bind
in class ServerSocket
UnsupportedOperationException
- alwayspublic void bind(SocketAddress endpoint, int backlog)
bind
in class ServerSocket
UnsupportedOperationException
- alwayspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class ServerSocket
IOException
public ServerSocketChannel getChannel()
getChannel
in class ServerSocket
public InetAddress getInetAddress()
getInetAddress
in class ServerSocket
public int getLocalPort()
getLocalPort
in class ServerSocket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class ServerSocket
public int getReceiveBufferSize()
getReceiveBufferSize
in class ServerSocket
public boolean getReuseAddress()
getReuseAddress
in class ServerSocket
public int getSoTimeout()
getSoTimeout
in class ServerSocket
public boolean isBound()
isBound
in class ServerSocket
public boolean isClosed()
isClosed
in class ServerSocket
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class ServerSocket
public void setReceiveBufferSize(int size)
setReceiveBufferSize
in class ServerSocket
public void setReuseAddress(boolean on)
setReuseAddress
in class ServerSocket
public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class ServerSocket
SocketException
public String toString()
toString
in class ServerSocket