~vomun-developers/anonplus/vomun-trunk

« back to all changes in this revision

Viewing changes to src/tunnels/base.py

  • Committer: AJ00200
  • Date: 2011-09-25 15:56:19 UTC
  • Revision ID: git-v1:34f8543d2599d1a725a5def2bae9e9cb449c9ddb
Basic file structure and some code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class Tunnel(object):
 
2
    '''Base Tunnel class. Should be subclassed by other tunnels for
 
3
    compatibility reasons as well as ease of use.
 
4
    '''
 
5
    def connect(self, address, port):
 
6
        '''Use this tunnel to connect to `address`:`port`'''
 
7
        pass
 
8
 
 
9
    def disconnect(self, nodeid):
 
10
        '''Disconnect from a node at `nodeid`'''
 
11
        pass
 
12
 
 
13
    def transfer(
 
14
 
 
15
class Connection(object):
 
16
    '''A class to store a connection to a peer'''
 
17
    pass