Hi,<br><br><b>The Goal:</b> <br><ul><li>I'm trying to write a simple server/client app where the client can send the server either a small string like "hello" OR a small file (txt, pdf, ppt,.. let's say < 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's highly desirable that the transfer be secure - but it's ok for the first version if it isn't
</li></ul><b>Questions:</b> <br><br>What's the cleanest way to accomplish this? I've been looking at the single Howto/Example that exists for <b>twisted.conch</b> but still can'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'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>