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.AutoCloseableclose インタフェース内 java.io.Closeablejava.io.IOExceptionpublic void reset()
throws java.io.IOException
Connection getConnection()
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream インタフェース内 I2PSocketjava.io.IOException - on failurepublic I2PSocketOptions getOptions()
getOptions インタフェース内 I2PSocket@Deprecated public java.nio.channels.SelectableChannel getChannel()
getChannel インタフェース内 I2PSocketpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream インタフェース内 I2PSocketjava.io.IOException - on failurepublic Destination getPeerDestination()
getPeerDestination インタフェース内 I2PSocketpublic long getReadTimeout()
I2PSocketgetReadTimeout インタフェース内 I2PSocketpublic Destination getThisDestination()
getThisDestination インタフェース内 I2PSocketpublic void setOptions(I2PSocketOptions options)
I2PSocketsetOptions インタフェース内 I2PSocketoptions - I2PSocketOptions to setpublic void setReadTimeout(long ms)
I2PSocketsetReadTimeout インタフェース内 I2PSocketms - timeout in mspublic void setSocketErrorListener(I2PSocket.SocketErrorListener lsnr)
setSocketErrorListener インタフェース内 I2PSocketvoid destroy()
void destroy2()
public int getPort()
public int getLocalPort()
getLocalPort インタフェース内 I2PSocketpublic java.lang.String toString()
toString クラス内 java.lang.Object