<div dir="ltr"><div>Well, sure; if you want your program to do the SOCKSing, Twisted has an implementation for that, so you *can*; Glyph is just suggesting that it may be easier to use Twisted only for the FTP-y bits, and rely on other software (such as socksify) to handle the SOCKS parts :)<br>

<br></div>So, to rephrase the question: is there a reason you&#39;re not using an external app to do the SOCKS parts?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 28, 2012 at 10:00 AM, Master Corp <span dir="ltr">&lt;<a href="mailto:corpmasters@gmail.com" target="_blank">corpmasters@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to make a script that does some simple ftp tasks (using socks) on a list of severs. I thought twisted is a good choice.<br>

<br><div class="gmail_quote">2012/12/28 Glyph <span dir="ltr">&lt;<a href="mailto:glyph@twistedmatrix.com" target="_blank">glyph@twistedmatrix.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word"><div><div><br><div><div>On Dec 27, 2012, at 9:33 AM, Master Corp &lt;<a href="mailto:corpmasters@gmail.com" target="_blank">corpmasters@gmail.com</a>&gt; wrote:</div>


<br><blockquote type="cite"><p style="line-height:16px;font-size:13px;font-family:&#39;Helvetica Neue&#39;,&#39;Bitstream Vera Sans&#39;,Helvetica,Arial,sans-serif">Hi. I am new to Twisted. I am using this code:</p><p style="line-height:16px;font-size:13px;font-family:&#39;Helvetica Neue&#39;,&#39;Bitstream Vera Sans&#39;,Helvetica,Arial,sans-serif">



<a href="http://twistedmatrix.com/documents/current/core/examples/ftpclient.py" style="color:rgb(74,29,190)" target="_blank"><span style="background-image:url();padding-left:16px;display:inline-block;width:0px;background-repeat:no-repeat no-repeat"> </span>http://twistedmatrix.com/documents/current/core/examples/ftpclient.py</a></p>


<p style="line-height:16px;font-size:13px;font-family:&#39;Helvetica Neue&#39;,&#39;Bitstream Vera Sans&#39;,Helvetica,Arial,sans-serif">Can this example be used to connect to an FTP through a SOCKS4/5 proxy? Can somebody provide an example of how it should be done?</p>


</blockquote><br></div></div></div><div>Is there any reason you want to use Twisted to do your SOCKS proxying?  Programs like &#39;socksify&#39; typically do what you need in a general way that does not require any awareness from your application.  (Twisted does have a SOCKS implementation, but it&#39;s rarely worth the trouble to plug it in.)</div>


<span><font color="#888888"><div><br></div><div>-glyph</div><div><br></div><br></font></span></div><br></div></div>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>cheers<div>lvh</div>
</div>