Package i2p :: Module tunnel :: Class TunnelClient
[show private | hide private]
[frames | no frames]

Class TunnelClient

Tunnel --+
         |
        TunnelClient


Method Summary
  __init__(self, session, port, dest, samaddr, nconnect, timeout, **kwargs)
Tunnels localhost:port --> I2P Destination dest.
    Inherited from Tunnel
  close(self)
Close all connections made for this tunnel.

Property Summary
  dest
  remotedest: Remote Destination.
  session

Method Details

__init__(self, session, port, dest, samaddr='127.0.0.1:7656', nconnect=-1, timeout=None, **kwargs)
(Constructor)

Tunnels localhost:port --> I2P Destination dest.

A session named 'session' is created locally, for purposes of routing to 'dest'. nconnect and timeout are the maximum number of connections and maximum time per connection. All other arguments are passed to socket.socket(). This call blocks until the tunnel is ready.
Overrides:
i2p.tunnel.Tunnel.__init__

Property Details

dest

Get Method:
'Local Destination used for routing.'

remotedest

Remote Destination.

session

Get Method:
'Local Destination used for routing.'

Generated by Epydoc 2.1 on Mon Aug 02 01:07:41 2004 http://epydoc.sf.net