Let me explain my problem.. I am building an uploader application using twisted. I am using &quot;Protocol&quot; in both side. What is the best way to seperate data?<br>When i try to call &quot;self.transport.write(data)&quot;&nbsp; it doesnt send data immediately, it is sending with some other datas whic i send them later. Why doesnt it send, what for is it waiting?<br>
<br>when i some information data I am sending&nbsp; with &#39;\n&#39; (there is no other &#39;\n&#39; in my data) to separate it in the client side but it is getting really complicated. When i start to send file there is no problem, first send fileSize then read everything and write in a file till fileSize. <br>
<br>I saw FileWrapper in the api but i couldnt find any tip that how it works, is it for sending file, is it right way to my goal?<br><br>What about sending data like HTTP? What do you think about this way?<br>8 #bytes of data<br>
11111111 #data<br>3 #bytes of data<br>111 #data<br>0 #finished sending data<br><br>I need your suggestions all about these.<br>(some links, documents, tips would be great)<br><br>Thanks..<br>-- <br>Aydın ŞEN<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ege Üniversitesi <br>
Uluslararası Bilgisayar Enstitüsü<br>