[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Mark old TorControl.py script as heavily deprecated
Update of /home/or/cvsroot/tor/contrib
In directory moria:/tmp/cvs-serv22509/contrib
Modified Files:
TorControl.py
Log Message:
Mark old TorControl.py script as heavily deprecated
Index: TorControl.py
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/TorControl.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- TorControl.py 19 Jun 2005 22:38:36 -0000 1.11
+++ TorControl.py 24 Jun 2005 18:05:43 -0000 1.12
@@ -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 @@
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 @@
#send_signal(s,1)
#save_conf(s)
-
#set_option(s,"1")
#set_option(s,"bandwidthburstbytes 100000")
#set_option(s,"runasdaemon 1")