[Twisted-Python] How to receive a big stream data?

steven wang steven.zdwang at gmail.com
Wed Jun 27 05:21:17 EDT 2007


hi!,  This is a clerical error. I rewrite it.

>     def check_head_ok(self, data):
>            if data.startswith('ABC'):
>                   values = data.split(',')
>                    self.big_data_size = int(values[1])
>                   self.is_big_data = self.big_data_size > 0
>                   return True
>           else:
>                   return False
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20070627/150b6268/attachment.htm 


More information about the Twisted-Python mailing list