|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ServerSocket
net.i2p.client.streaming.impl.StandardServerSocket
class StandardServerSocket
Bridge to I2PServerSocket. This extends ServerSocket to make porting apps easier. accept() returns a real Socket (a StandardSocket). accept() throws IOExceptions like ServerSockets do, rather than returning null or throwing I2PExceptions. StandardServerSockets are always bound. You may not create an unbound StandardServerSocket. Create this through the SocketManager.
Constructor Summary | |
---|---|
StandardServerSocket(I2PServerSocketFull socket)
Doesn't really throw IOE but super() does |
Method Summary | |
---|---|
Socket |
accept()
|
void |
bind(SocketAddress endpoint)
|
void |
bind(SocketAddress endpoint,
int backlog)
|
void |
close()
|
ServerSocketChannel |
getChannel()
|
InetAddress |
getInetAddress()
|
int |
getLocalPort()
|
SocketAddress |
getLocalSocketAddress()
|
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()
|
Methods inherited from class java.net.ServerSocket |
---|
implAccept, setSocketFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
StandardServerSocket(I2PServerSocketFull socket) throws IOException
IOException
Method Detail |
---|
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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |