Handler, SAMDatagramReceiver, SAMRawReceiver, SAMStreamReceiverclass SAMv2Handler extends SAMv1Handler implements SAMRawReceiver, SAMDatagramReceiver, SAMStreamReceiver
_log, bridge, i2cpProps, socket, stopHandler, stopLock, thread, verMajor, verMinor_id, datagramSession, rawSession, SESSION_ERROR, streamSession| コンストラクタ | 説明 |
|---|---|
SAMv2Handler(java.nio.channels.SocketChannel s,
int verMajor,
int verMinor,
java.util.Properties i2cpProps,
SAMBridge parent) |
Create a new SAM version 2 handler.
|
SAMv2Handler(java.nio.channels.SocketChannel s,
int verMajor,
int verMinor,
SAMBridge parent) |
Create a new SAM version 2 handler.
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
protected boolean |
execStreamMessage(java.lang.String opcode,
java.util.Properties props) |
|
(package private) SAMStreamSession |
newSAMStreamSession(java.lang.String destKeystream,
java.lang.String direction,
java.util.Properties props) |
|
boolean |
verifVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreceiveDatagramBytes, stopDatagramReceivingcloseClientSocket, getClientSocket, getWriteLock, run, shouldStop, startHandling, stopHandling, toString, writeBytes, writeString, writeStringreceiveRawBytes, stopRawReceivingnotifyStreamDisconnection, notifyStreamIncomingConnection, notifyStreamOutgoingConnection, notifyStreamSendBufferFree, receiveStreamBytes, stopStreamReceiving, streamSendAnswercreateMessageString, execDatagramMessage, execDestMessage, execNamingMessage, execRawMessage, execSessionMessage, execStreamClose, execStreamConnect, execStreamSend, getDatagramSession, getRawSession, getStreamSession, handle, notifyStreamDisconnection, notifyStreamIncomingConnection, notifyStreamOutgoingConnection, notifyStreamSendBufferFree, receiveDatagramBytes, receiveRawBytes, receiveStreamBytes, stopDatagramReceiving, stopRawReceiving, stopStreamReceiving, streamSendAnswer, writeStringpublic SAMv2Handler(java.nio.channels.SocketChannel s,
int verMajor,
int verMinor,
SAMBridge parent)
throws SAMException,
java.io.IOException
s - Socket attached to a SAM clientverMajor - SAM major version to manage (should be 2)verMinor - SAM minor version to manageSAMExceptionjava.io.IOExceptionpublic SAMv2Handler(java.nio.channels.SocketChannel s,
int verMajor,
int verMinor,
java.util.Properties i2cpProps,
SAMBridge parent)
throws SAMException,
java.io.IOException
s - Socket attached to a SAM clientverMajor - SAM major version to manage (should be 2)verMinor - SAM minor version to managei2cpProps - properties to configure the I2CP connection (host, port, etc)SAMExceptionjava.io.IOExceptionpublic boolean verifVersion()
verifVersion クラス内 SAMv1HandlerSAMStreamSession newSAMStreamSession(java.lang.String destKeystream, java.lang.String direction, java.util.Properties props) throws java.io.IOException, DataFormatException, SAMException
java.io.IOExceptionDataFormatExceptionSAMExceptionprotected boolean execStreamMessage(java.lang.String opcode,
java.util.Properties props)
execStreamMessage クラス内 SAMv1Handler