Module: I2P::SAM

Defined in:
lib/i2p/sam.rb,
lib/i2p/sam/client.rb

Overview

**I2P Simple Anonymous Messaging (SAM) protocol.**

This is an implementation of the SAM V3 protocol, available since I2P release [0.7.3](www.i2p2.de/release-0.7.3.html).

Note that for security reasons, the SAM application bridge is not enabled by default in new I2P installations. To use ‘I2P::SAM`, you must first manually enable SAM in the router console’s [client configuration](localhost:7657/configclients.jsp).

Note also that I2P by default doesn’t bring up the SAM bridge until 120 seconds after router startup. This delay can be changed by editing the ‘~/.i2p/clients.config` configuration file.

Defined Under Namespace

Classes: Client, Error

Constant Summary collapse

PROTOCOL_VERSION =
3.0
DEFAULT_HOST =
(ENV['I2P_SAM_HOST'] || '127.0.0.1').to_s
DEFAULT_PORT =
(ENV['I2P_SAM_PORT'] || 7656).to_i