[Twisted-Python] client send twice but server reads once

Aydın ŞEN adigeaydin at gmail.com
Wed Nov 12 07:34:30 EST 2008


yeap, LineReceiver is the point for me.

thanks.

2008/11/12 Phil Mayers <p.mayers at imperial.ac.uk>

> Aydın ŞEN wrote:
>
>> Hi,
>>
>> In my code i'm sending sequential data from client like;
>>
>> self.transport.write('aydin')
>> self.transport.write('adige')
>>
>> but server reads data like *'aydinadige'
>>
>> *How can i solve this, actually it is not clear how does dataReceived work
>> for me
>>
>>
> You can't, TCP will deliver the messages and re-assemble them at will.
>
> 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
>
>  best regards..
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



-- 
Aydın ŞEN

         Ege Üniversitesi
Uluslararası Bilgisayar Enstitüsü
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20081112/45dac9b5/attachment.htm 


More information about the Twisted-Python mailing list