User's Guide:i2p.tunnel

From Python-I2P.

Module i2p.tunnel allows data to be exchanged between traditional TCP sockets and I2P sockets.

Tunnels

Tunnels allow stream sockets to be joined, so that connections to a listening socket are relayed to one or more sending sockets. This allows an ordinary web server to be exposed as an I2P Destination, or an I2P Destination to be bound as a local port, and so on.

class Tunnel(self, receive, make_send, nconnect=-1, timeout=60.0)

close()

Tunnel Server

class TunnelServer(session, port, samaddr='127.0.0.1:7656', nconnect=-1, timeout=None, **kwargs)

TunnelServer properties:

Tunnel Client

class TunnelClient(session, port, dest, samaddr='127.0.0.1:7656', nconnect=-1, timeout=None, **kwargs)

TunnelClient properties: