class SAMHandlerFactory
extends java.lang.Object
| コンストラクタ | 説明 |
|---|---|
SAMHandlerFactory() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static SAMHandler |
createSAMHandler(java.nio.channels.SocketChannel s,
java.util.Properties i2cpProps,
SAMBridge parent) |
Return the right SAM handler depending on the protocol version
required by the client.
|
public static SAMHandler createSAMHandler(java.nio.channels.SocketChannel s, java.util.Properties i2cpProps, SAMBridge parent) throws SAMException
s - Socket attached to SAM clienti2cpProps - config options for our i2cp connectionSAMException - if the connection handshake (HELLO message) was malformed