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

steven wang steven.zdwang at gmail.com
Wed Jun 27 03:21:17 MDT 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: </pipermail/twisted-python/attachments/20070627/150b6268/attachment.html>


More information about the Twisted-Python mailing list