yeap, LineReceiver is the point for me.<br><br>thanks.<br><br><div class="gmail_quote">2008/11/12 Phil Mayers <span dir="ltr">&lt;<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Aydın ŞEN wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
In my code i&#39;m sending sequential data from client like;<br>
<br>
self.transport.write(&#39;aydin&#39;)<br>
self.transport.write(&#39;adige&#39;)<br>
<br>
but server reads data like *&#39;aydinadige&#39;<br>
<br>
*How can i solve this, actually it is not clear how does dataReceived work for me<br>
<br>
</blockquote>
<br></div></div>
You can&#39;t, TCP will deliver the messages and re-assemble them at will.<br>
<br>
If you want message framing on top of TCP, you need to add it. Twisted comes with some several e.g. in twisted.protocols.basic you have LineReceiver, NetstringReceiver<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
best regards..<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<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>
</blockquote>
<br>
<br>
_______________________________________________<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>
</blockquote></div><br><br clear="all"><br>-- <br>Aydın ŞEN<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ege Üniversitesi <br>Uluslararası Bilgisayar Enstitüsü<br>