class SAMHandlerFactory extends Object
| Constructor | Description |
|---|---|
SAMHandlerFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static SAMHandler |
createSAMHandler(SocketChannel s,
Properties i2cpProps,
SAMBridge parent) |
Return the right SAM handler depending on the protocol version
required by the client.
|
public static SAMHandler createSAMHandler(SocketChannel s, 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