def __init__(self, transport): """ Call superclass initializer to initialize the environment variables which are used by both clients and servers. Then initialize the environment variable which is used bo just clients. This is TOR_PT_CLIENT_TRANSPORTS. """ Manager.__init__(self) os.environ['TOR_PT_CLIENT_TRANSPORTS'] = transport
def __init__(self, transport): """ Call superclass initializer to initialize the environment variables which are used by both clients and servers. Then initialize the environment variables which are used bo just servers. These are TOR_PT_EXTENDED_SERVER_PORT, TOR_PT_ORPORT, TOR_PT_SERVER_BINDADDR, and TOR_PT_SERVER_TRANSPORTS. """ Manager.__init__(self) os.environ['TOR_PT_EXTENDED_SERVER_PORT'] = '127.0.0.1:22211' os.environ['TOR_PT_ORPORT'] = '127.0.0.1:43210' os.environ['TOR_PT_SERVER_BINDADDR'] = transport \ + '-127.0.0.1:46466' os.environ['TOR_PT_SERVER_TRANSPORTS'] = transport