[Pkg-privacy-commits] [obfsproxy] 113/353: Remove the tools/ directory since we didn't use it.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 06ff98a30357745788ab6a790c5e7259c25cad7a
Author: George Kadianakis <desnacked at riseup.net>
Date:   Wed Feb 6 17:29:13 2013 +0000

    Remove the tools/ directory since we didn't use it.
    
    It was forgotten there from GSoC and I thought it might be useful in
    the future, but it probably won't be.
---
 tools/manager/__init__.py      |  3 ---
 tools/manager/clientManager.py | 41 ---------------------------------------
 tools/manager/manager.py       | 44 ------------------------------------------
 tools/manager/serverManager.py | 42 ----------------------------------------
 4 files changed, 130 deletions(-)

diff --git a/tools/manager/__init__.py b/tools/manager/__init__.py
deleted file mode 100644
index e0e3e1a..0000000
--- a/tools/manager/__init__.py
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
diff --git a/tools/manager/clientManager.py b/tools/manager/clientManager.py
deleted file mode 100644
index 3e77a9a..0000000
--- a/tools/manager/clientManager.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-"""
-This module contains the ClientManager class, which implemnts a client manager.
-Managers are command line tools used for testing transports. They simulate Tor by launching transports and providing similar environment variables as would be provided by Tor.
-Managers are only necessary for testing. In actual deployment, Tor can be used.
-"""
-
-import os
-import sys
-
-from manager import Manager
-
-
-class ClientManager(Manager):
-
-    """ The ClientManager class implemnts a client manager. """
-
-    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
-
-
-if __name__ == '__main__':
-    if len(sys.argv) < 2:
-        print 'clientManager [transport]'
-    else:
-        try:
-            transport = sys.argv[1]
-            manager = ClientManager(transport)
-            manager.launch()
-        except Exception, e:
-            print 'Exception: ' + str(e)
diff --git a/tools/manager/manager.py b/tools/manager/manager.py
deleted file mode 100644
index 1e126ff..0000000
--- a/tools/manager/manager.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-"""
-This module contains the Manager class, the base class for client and server managers.
-Managers are command line tools used for testing transports. They simulate Tor by launching transports and providing similar environment variables as would be provided by Tor.
-Managers are only necessary for testing. In actual deployment, Tor can be used.
-"""
-
-import os
-import sys
-import subprocess
-
-
-class Manager:
-
-    """ The Manager class is the base class for client and server managers. """
-
-    def __init__(self):
-        """
-        Initialize the environment variables which are used by both clients and servers.
-        These are TOR_PT_STATE_LOCATION and TOR_PT_MANAGED_TRANSPORT_VER
-        """
-
-        os.environ['TOR_PT_STATE_LOCATION'] = '/'
-        os.environ['TOR_PT_MANAGED_TRANSPORT_VER'] = '1'
-
-    def launch(self):
-        """
-        Launch the client or server process and wait for it to exit, in the meantime printing any output it generates.
-        Launching of the client and server is identical.
-        The client/server behavior is determined by which environment variables have been set by the ClientManager and ServerManager subclasses.
-        """
-
-        p = subprocess.Popen(['python', '-u', 'src/cli.py', '--managed'
-                             ], stdout=subprocess.PIPE)
-        line = p.stdout.readline().strip()
-        while line != None and line != '':
-            print str(line)
-            sys.stdout.flush()
-            line = p.stdout.readline().strip()
-        print 'Done!'
-
-
diff --git a/tools/manager/serverManager.py b/tools/manager/serverManager.py
deleted file mode 100644
index df9ffeb..0000000
--- a/tools/manager/serverManager.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-"""
-This module contains the ServerManager class, which implemnts a server manager.
-Managers are command line tools used for testing transports. They simulate Tor by launching transports and providing similar environment variables as would be provided by Tor.
-Managers are only necessary for testing. In actual deployment, Tor can be used.
-"""
-
-import os
-import sys
-
-from manager import Manager
-
-
-class ServerManager(Manager):
-
-    """ The ServerManager class implemnts a client manager. """
-
-    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
-
-
-if __name__ == '__main__':
-    if len(sys.argv) < 2:
-        print 'serverManager [transport]'
-    else:
-        transport = sys.argv[1]
-        manager = ServerManager(transport)
-        manager.launch()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list