Hi,<br><br><b>The Goal:</b> <br><ul><li>I&#39;m trying to write a simple server/client app where the client can send the server either a small string like &quot;hello&quot; OR a small file (txt, pdf, ppt,.. let&#39;s say &lt; 5MB ). 
</li><li>The server needs to figure out if the data it received is a simple string or a file and symmetrically may decide to send back to the client a simple string or a small file. </li><li>As a bonus, It&#39;s highly desirable that the transfer be secure - but it&#39;s ok for the first version if it isn&#39;t
</li></ul><b>Questions:</b> <br><br>What&#39;s the cleanest way to accomplish this? I&#39;ve been looking at the single Howto/Example that exists for <b>twisted.conch</b> but still can&#39;t understand several things. In particular
<br><ol><li>Should I create two separate channels between server and client - one for simple strings and one for files so that the client or server knows the type of data on that channel?<br><br> </li><li>Should the files be mime-encoded at one end and mime-decoded at the other so that file-type is automatically handled?
<br><br></li><li>I&#39;ve read that there is a python package called paramiko that implements ssh2 transfer - how does this compare with twisted.conch?<br></li></ol>This is my first time playing around with twisted or any kind of networking stuff so any kind of help will be appreciated
<br><br>Thanks!<br><br>Sajit<br>