On 29/08/13 16:38, Sivakumar Balasubramanian wrote:

Is there something that I doing wrong in my code?

Yes. You are sub-classing Int16StringReceiver, but then breaking things by overriding dataReceived. You should be implementing stringReceived, and you'll get complete strings.

dataReceived does not get "messages" - a higher layer needs to buffer and reassemble them, which Int16StringReceiver does, and passes the messages to stringReceived.

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to