Peter,
Thanks for the help. Yes I get a header and then am looking to extract the
body.
So to make sure I understand:
p = compile('Content-Length:\s(\d+)')
class SomeClient(basic.LineReceiver):
def connectionMade(self):
self.transport.write('login: info\r\n\r\n') # log in ... then device
starts sending events
def lineReceived(self, line):
m = p.findall(line)
if m:
self.body_length = m[0]
self.setRawMode()
def rawDataReceived(self, data):
self.get_rest -= len(data)
set.lineMode()
Should something along those lines work?
David / Peter ... thanks again for the assistance!
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python