<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Steve, you can open sockets and send data down them natively in Gecko-based apps... and the XPCOM components are scriptable, so you don't have to write any C/C++. So, there's no need to write an command-line program to send the plaintext down the socket (only to launch it from Torpark). Let me know if you need pointers.<br><br>-eric<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Arrakistor &lt;arrakistor@gmail.com&gt;<br>To: Roger Dingledine &lt;or-talk@freehaven.net&gt;<br>Sent: Tuesday, August 1, 2006 11:37:17 PM<br>Subject: Re[2]: Tor Question<br><br><div>Roger,<br><br>Okay,&nbsp;&nbsp;so&nbsp;&nbsp;i&nbsp;&nbsp;COULD&nbsp;&nbsp;send the plaintext signal to the control port
 and<br>have&nbsp;&nbsp;success&nbsp;&nbsp;under win32. I thought you said this, but questioned my<br>memory once i read the code.<br><br>The&nbsp;&nbsp;reason I ask about winking nodes is that I added a button to kill<br>the&nbsp;&nbsp;tor&nbsp;&nbsp;process.&nbsp;&nbsp;When&nbsp;&nbsp;torpark&nbsp;&nbsp;notices&nbsp;&nbsp;that&nbsp;&nbsp;there is no longer a<br>tor.exe&nbsp;&nbsp;process,&nbsp;&nbsp;it&nbsp;&nbsp;restarts it. Occasionally the tor process would<br>instantly&nbsp;&nbsp;exit&nbsp;&nbsp;for&nbsp;&nbsp;some reason, too infrequent/inconsistent to tell<br>everyone to log, but frequent enough to be an annoyance. The upshot is<br>that&nbsp;&nbsp;if&nbsp;&nbsp;you&nbsp;&nbsp;want&nbsp;&nbsp;to flush your tor circuit, you can simply click a<br>button&nbsp;&nbsp;on&nbsp;&nbsp;the&nbsp;&nbsp;toolbar&nbsp;&nbsp;and&nbsp;&nbsp;it&nbsp;&nbsp;gets&nbsp;&nbsp;you a new circuit. I did this<br>because&nbsp;&nbsp;often a user will be surfing and circuit fails for one
 reason<br>or another and they have to shut down and restart the browser to get a<br>new&nbsp;&nbsp;circuit.&nbsp;&nbsp;Because the process is so dirty, I am worried about how<br>it may affect the tor network.<br><br>I still have yet to heavily research making torpark actually talk with<br>tor.exe&nbsp;&nbsp;instead&nbsp;&nbsp;of&nbsp;&nbsp;kicking it around. I wonder if it is possible to<br>pipe&nbsp;&nbsp;these&nbsp;&nbsp;plaintexts&nbsp;&nbsp;directly to the controlport with some command<br>line program.<br><br>Regards,<br> Arrakistor<br><br>Tuesday, August 1, 2006, 10:11:59 PM, you wrote:<br><br>&gt; On Tue, Aug 01, 2006 at 10:02:57PM -0500, Arrakistor wrote:<br>&gt;&gt; I&nbsp;&nbsp;have&nbsp;&nbsp;a&nbsp;&nbsp;question.&nbsp;&nbsp;I&nbsp;&nbsp;noticed&nbsp;&nbsp;in some code that it said if tor is<br>&gt;&gt; running&nbsp;&nbsp;on&nbsp;&nbsp;a&nbsp;&nbsp;win32&nbsp;&nbsp;system,&nbsp;&nbsp;to&nbsp;&nbsp;disable signals. So even if I sent<br>&gt;&gt;
 signals&nbsp;&nbsp;like sighup to the process, it wouldn't be listening. Is this<br>&gt;&gt; true?<br><br>&gt; Correct. Windows doesn't have signals, so there is no concept of sending<br>&gt; a sighup to a Windows process.<br><br>&gt; We fake this by letting you connect on the controlport and send the string<br>&gt; "signal hup", aka "signal reload". Then Tor behaves as though you just<br>&gt; sent it a unix-style signal.<br><br>&gt;&gt; Also,&nbsp;&nbsp;what kind of damage does it do to the tor network for a node to<br>&gt;&gt; just instantly disappear without notifying the network?<br><br>&gt; Any circuit that's currently using that node breaks. So if a user has a<br>&gt; long-term IRC or IM connection on that circuit, she gets disconnected.<br>&gt; Tor will automatically recover and build new circuits, but the application<br>&gt; will have to reconnect over the new circuit.<br><br>&gt; We try to tolerate nodes that appear and disappear frequently, by avoiding<br>&gt;
 them when building circuits for destination ports that we expect will<br>&gt; want high uptime: see LongLivedPorts in your manual page. After all,<br>&gt; servers will have to disappear and reappear periodically.<br><br>&gt; But if they aren't online very long, new clients won't have time to hear<br>&gt; about them from the directories, so we won't be able to make good use<br>&gt; of them. This is another item on our list of hard things that ought to<br>&gt; be fixed. :)<br><br>&gt; Why do you ask?<br><br>&gt; --Roger<br><br></div></div><br></div></div></body></html>