net.i2p.client.streaming
class I2PServerSocketImpl extends Object implements I2PServerSocket
Constructor and Description |
---|
I2PServerSocketImpl(I2PSocketManager mgr)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
I2PSocket |
accept()
Deprecated.
Waits for the next socket connecting.
|
boolean |
addWaitForAccept(I2PSocket s,
long timeoutMs)
Deprecated.
Make the socket available and wait until the client app accepts it, or until
the given timeout elapses.
|
void |
close()
Deprecated.
Closes the socket.
|
I2PSocketManager |
getManager()
Deprecated.
Access the manager which is coordinating the server socket
|
long |
getSoTimeout()
Deprecated.
Get Sock Option accept timeout stub, does nothing in ministreaming
|
void |
setSoTimeout(long x)
Deprecated.
Set Sock Option accept timeout stub, does nothing in ministreaming
|
public I2PServerSocketImpl(I2PSocketManager mgr)
public void setSoTimeout(long x)
setSoTimeout
in interface I2PServerSocket
x
- public long getSoTimeout()
getSoTimeout
in interface I2PServerSocket
public I2PSocket accept() throws I2PException, ConnectException
accept
in interface I2PServerSocket
I2PException
- if there is a problem with reading a new socket
from the data available (aka the I2PSession closed, etc)ConnectException
- if the I2PServerSocket is closedpublic boolean addWaitForAccept(I2PSocket s, long timeoutMs)
timeoutMs
- how long to wait until acceptpublic void close()
I2PServerSocket
close
in interface I2PServerSocket
public I2PSocketManager getManager()
I2PServerSocket
getManager
in interface I2PServerSocket