|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.streaming.I2PSocketFull
public 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) Connection |
getConnection()
|
java.io.InputStream |
getInputStream()
Return an InputStream to read from the socket. |
I2PSocketOptions |
getOptions()
Retrieve this socket's configuration |
java.io.OutputStream |
getOutputStream()
Return an OutputStream to write into the socket. |
Destination |
getPeerDestination()
Return the destination of the peer. |
long |
getReadTimeout()
How long we will wait blocked on a read() operation. |
Destination |
getThisDestination()
Return the Destination of this side of the socket. |
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)
|
java.lang.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 java.io.IOException
I2PSocket
close
in interface I2PSocket
java.io.IOException
Connection getConnection()
public java.io.InputStream getInputStream()
I2PSocket
getInputStream
in interface I2PSocket
public I2PSocketOptions getOptions()
I2PSocket
getOptions
in interface I2PSocket
public java.io.OutputStream getOutputStream() throws java.io.IOException
I2PSocket
getOutputStream
in interface I2PSocket
java.io.IOException
public Destination getPeerDestination()
I2PSocket
getPeerDestination
in interface I2PSocket
public long getReadTimeout()
I2PSocket
getReadTimeout
in interface I2PSocket
public Destination getThisDestination()
I2PSocket
getThisDestination
in interface I2PSocket
public void setOptions(I2PSocketOptions options)
I2PSocket
setOptions
in interface I2PSocket
public void setReadTimeout(long ms)
I2PSocket
setReadTimeout
in interface I2PSocket
public void setSocketErrorListener(I2PSocket.SocketErrorListener lsnr)
setSocketErrorListener
in interface I2PSocket
public boolean isClosed()
isClosed
in interface I2PSocket
void destroy()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |