Re: [Tutor] Buffer code review

2016-02-12 Thread Danny Yoo
Hi Richard, Make sure you understand the semantics of socket.send. It does *not* guarantee that it sends all the data, and the comment you have in your program > def sendLine(line, i): > s = '\x02' + line[:-1] + '\x03' > logging.info('sending line ' + str(i)) > print i > socktx.

[Tutor] Buffer code review

2016-02-12 Thread richard kappler
I have a two script test env set to simulate a controller in production. The controller creates xml data from a camera tunnel as packages roll through it, sends these xml messages over tcp to a different machine. To simulate this in our test environment, I take a log of all the xml messages, read