summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-06-24 18:05:43 +0000
committerNick Mathewson <nickm@torproject.org>2005-06-24 18:05:43 +0000
commitc831a9f7017dcc6adac47bf0bf897632c0000a0d (patch)
tree33051370e6ba3fd3429225b77727cf7e328dd03b
parent6602098e0365162087a8429c25724e6aacada490 (diff)
downloadtor-c831a9f7017dcc6adac47bf0bf897632c0000a0d.tar.gz
tor-c831a9f7017dcc6adac47bf0bf897632c0000a0d.zip
Mark old TorControl.py script as heavily deprecated
svn:r4479
-rwxr-xr-xcontrib/TorControl.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/TorControl.py b/contrib/TorControl.py
index 23a7804ced..2cc7cca133 100755
--- a/contrib/TorControl.py
+++ b/contrib/TorControl.py
@@ -3,6 +3,14 @@
# Copyright 2005 Nick Mathewson -- See LICENSE for licensing information.
#$Id$
+# THIS MODULE IS OBSOLETE!
+#
+# There is a "TorCtl.py" module in the "control" directory in Tor CVS;
+# this new module supports the new ('version 1') Tor controller protocol
+# and has a far nicer and more object-oriented design than this module does.
+#
+# No further support will be done on this module.
+
import socket
import struct
import sys
@@ -361,7 +369,6 @@ def post_descriptor(s, descriptor):
send_message(s,MSG_TYPE.POSTDESCRIPTOR,descriptor)
tp,body = receive_reply(s,[MSG_TYPE.DONE])
-
def _unterminate(s):
if s[-1] == '\0':
return s[:-1]
@@ -438,7 +445,6 @@ def do_main_loop(host,port):
#send_signal(s,1)
#save_conf(s)
-
#set_option(s,"1")
#set_option(s,"bandwidthburstbytes 100000")
#set_option(s,"runasdaemon 1")