I2PSocket.SocketErrorListener
コンストラクタ | 説明 |
---|---|
I2PSocketFull(Connection con,
I2PAppContext context) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
close() |
Closes this socket.
|
(package private) void |
destroy() |
|
(package private) void |
destroy2() |
Call from Connection.disconnectComplete()
instead of destroy() so we don't loop
|
java.nio.channels.SelectableChannel |
getChannel() |
推奨されていません。
|
(package private) Connection |
getConnection() |
|
java.io.InputStream |
getInputStream() |
As of 0.9.9 will throw an IOE if socket is closed.
|
int |
getLocalPort() |
The local port.
|
I2PSocketOptions |
getOptions() |
|
java.io.OutputStream |
getOutputStream() |
As of 0.9.9 will throw an IOE if socket is closed.
|
Destination |
getPeerDestination() |
|
int |
getPort() |
The remote port.
|
long |
getReadTimeout() |
How long we will wait blocked on a read() operation.
|
Destination |
getThisDestination() |
|
boolean |
isClosed() |
|
void |
reset() |
Resets and closes this socket.
|
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) |
Deprecated, unimplemented, does nothing
|
java.lang.String |
toString() |
public I2PSocketFull(Connection con, I2PAppContext context)
public void close() throws java.io.IOException
close
インタフェース内 java.lang.AutoCloseable
close
インタフェース内 java.io.Closeable
java.io.IOException
public void reset() throws java.io.IOException
Connection getConnection()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
インタフェース内 I2PSocket
java.io.IOException
- on failurepublic I2PSocketOptions getOptions()
getOptions
インタフェース内 I2PSocket
@Deprecated public java.nio.channels.SelectableChannel getChannel()
getChannel
インタフェース内 I2PSocket
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
インタフェース内 I2PSocket
java.io.IOException
- on failurepublic Destination getPeerDestination()
getPeerDestination
インタフェース内 I2PSocket
public long getReadTimeout()
I2PSocket
getReadTimeout
インタフェース内 I2PSocket
public Destination getThisDestination()
getThisDestination
インタフェース内 I2PSocket
public void setOptions(I2PSocketOptions options)
I2PSocket
setOptions
インタフェース内 I2PSocket
options
- I2PSocketOptions to setpublic void setReadTimeout(long ms)
I2PSocket
setReadTimeout
インタフェース内 I2PSocket
ms
- timeout in mspublic void setSocketErrorListener(I2PSocket.SocketErrorListener lsnr)
setSocketErrorListener
インタフェース内 I2PSocket
void destroy()
void destroy2()
public int getPort()
public int getLocalPort()
getLocalPort
インタフェース内 I2PSocket
public java.lang.String toString()
toString
クラス内 java.lang.Object