I2PSessionListener, I2PSessionMuxedListenerclass MessageHandler extends java.lang.Object implements I2PSessionMuxedListener
I2PSession -> MessageHandler -> PacketHandler -> ConnectionPacketHandler -> MessageInputStream
| コンストラクタ | 説明 |
|---|---|
MessageHandler(I2PAppContext ctx,
ConnectionManager mgr) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
void |
addDisconnectListener(I2PSocketManager.DisconnectListener lsnr) |
|
void |
disconnected(I2PSession session) |
Notify the client that the session has been terminated
|
void |
errorOccurred(I2PSession session,
java.lang.String message,
java.lang.Throwable error) |
Notify the client that some error occurred
|
void |
messageAvailable(I2PSession session,
int msgId,
long size) |
Instruct the client that the given session has received a message with
size # of bytes.
|
void |
messageAvailable(I2PSession session,
int msgId,
long size,
int proto,
int fromPort,
int toPort) |
Instruct the client that the given session has received a message with
size # of bytes.
|
void |
removeDisconnectListener(I2PSocketManager.DisconnectListener lsnr) |
|
void |
reportAbuse(I2PSession session,
int severity) |
Instruct the client that the session specified seems to be under attack
and that the client may wish to move its destination to another router.
|
public MessageHandler(I2PAppContext ctx, ConnectionManager mgr)
public void messageAvailable(I2PSession session, int msgId, long size)
messageAvailable インタフェース内 I2PSessionListenermessageAvailable インタフェース内 I2PSessionMuxedListenersession - session to notifymsgId - message number availablesize - size of the messagepublic void messageAvailable(I2PSession session, int msgId, long size, int proto, int fromPort, int toPort)
messageAvailable インタフェース内 I2PSessionMuxedListenersession - session to notifymsgId - message number availablesize - size of the messageproto - 1-254 or 0 for unspecifiedfromPort - 1-65535 or 0 for unspecifiedtoPort - 1-65535 or 0 for unspecifiedpublic void reportAbuse(I2PSession session, int severity)
reportAbuse インタフェース内 I2PSessionListenerreportAbuse インタフェース内 I2PSessionMuxedListenersession - session to report abuse toseverity - how bad the abuse ispublic void disconnected(I2PSession session)
disconnected インタフェース内 I2PSessionListenerdisconnected インタフェース内 I2PSessionMuxedListenersession - that has been terminatedpublic void errorOccurred(I2PSession session, java.lang.String message, java.lang.Throwable error)
errorOccurred インタフェース内 I2PSessionListenererrorOccurred インタフェース内 I2PSessionMuxedListenersession - of the clientmessage - to send to the client about the errorerror - the actual errorpublic void addDisconnectListener(I2PSocketManager.DisconnectListener lsnr)
public void removeDisconnectListener(I2PSocketManager.DisconnectListener lsnr)