[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix debugging and listenforevents API a little



Update of /home/or/cvsroot/control/java/net/freehaven/tor/control/examples
In directory moria:/tmp/cvs-serv11597/java/net/freehaven/tor/control/examples

Modified Files:
	Main.java 
Log Message:
fix debugging and listenforevents API a little

Index: Main.java
===================================================================
RCS file: /home/or/cvsroot/control/java/net/freehaven/tor/control/examples/Main.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Main.java	14 Jul 2005 20:26:11 -0000	1.4
+++ Main.java	20 Jul 2005 22:48:35 -0000	1.5
@@ -52,6 +52,10 @@
         throws IOException {
         TorControlConnection conn = TorControlConnection.getConnection(
                                     new java.net.Socket("127.0.0.1", 9100));
+        if (conn instanceof TorControlConnection1) {
+            System.err.println("Debugging");
+            ((TorControlConnection1)conn).setDebugging(System.err);
+        }
         Thread th = conn.launchThread(daemon);
         conn.authenticate(new byte[0]);
         return conn;