|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.client.streaming.I2PSocketFull
class I2PSocketFull
Bridge between the full streaming lib and the I2PSocket API
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.i2p.client.streaming.I2PSocket |
|---|
I2PSocket.SocketErrorListener |
| Constructor Summary | |
|---|---|
I2PSocketFull(Connection con)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the socket if not closed yet |
(package private) void |
destroy()
|
(package private) void |
destroy2()
Call from Connection.disconnectComplete() instead of destroy() so we don't loop |
SelectableChannel |
getChannel()
|
(package private) Connection |
getConnection()
|
InputStream |
getInputStream()
Warning, may return null instead of throwing IOE, which is not what the interface says. |
int |
getLocalPort()
The local port. |
I2PSocketOptions |
getOptions()
|
OutputStream |
getOutputStream()
Warning, may return null instead of throwing IOE, which is not what the interface says. |
Destination |
getPeerDestination()
|
int |
getPort()
The remote port. |
long |
getReadTimeout()
How long we will wait blocked on a read() operation. |
Destination |
getThisDestination()
|
boolean |
isClosed()
|
void |
setOptions(I2PSocketOptions options)
Configure the socket |
void |
setReadTimeout(long ms)
Define how long we will wait blocked on a read() operation (-1 will make the socket wait forever). |
void |
setSocketErrorListener(I2PSocket.SocketErrorListener lsnr)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public I2PSocketFull(Connection con)
| Method Detail |
|---|
public void close()
throws IOException
I2PSocket
close in interface I2PSocketIOException - on failureConnection getConnection()
public InputStream getInputStream()
getInputStream in interface I2PSocketpublic I2PSocketOptions getOptions()
getOptions in interface I2PSocketpublic SelectableChannel getChannel()
getChannel in interface I2PSocket
public OutputStream getOutputStream()
throws IOException
getOutputStream in interface I2PSocketIOException - on failurepublic Destination getPeerDestination()
getPeerDestination in interface I2PSocketpublic long getReadTimeout()
I2PSocket
getReadTimeout in interface I2PSocketpublic Destination getThisDestination()
getThisDestination in interface I2PSocketpublic void setOptions(I2PSocketOptions options)
I2PSocket
setOptions in interface I2PSocketoptions - I2PSocketOptions to setpublic void setReadTimeout(long ms)
I2PSocket
setReadTimeout in interface I2PSocketms - timeout in mspublic void setSocketErrorListener(I2PSocket.SocketErrorListener lsnr)
setSocketErrorListener in interface I2PSocketpublic boolean isClosed()
isClosed in interface I2PSocketvoid destroy()
void destroy2()
public int getPort()
getPort in interface I2PSocketpublic int getLocalPort()
getLocalPort in interface I2PSocketpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||