Browse Source

missing modulename and fix refactoring

pull/1780/head
tim watts 9 years ago
parent
commit
3092d2c043
2 changed files with 4 additions and 3 deletions
  1. +3
    -3
      example/python/app.py
  2. +1
    -0
      example/python/tmsp/server.py

+ 3
- 3
example/python/app.py View File

@ -1,8 +1,8 @@
import sys
from wire import hex2bytes, decode_big_endian, encode_big_endian
from server import TMSPServer
from reader import BytesBuffer
from tmsp.wire import hex2bytes, decode_big_endian, encode_big_endian
from tmsp.server import TMSPServer
from tmsp.reader import BytesBuffer
class CounterApplication():


+ 1
- 0
example/python/tmsp/server.py View File

@ -111,6 +111,7 @@ class TMSPServer():
# messages are length prefixed
conn.resBuf.write(encode(1))
conn.resBuf.write([resTypeByte])
conn.fd.send(str(conn.resBuf.buf))
conn.msgLength = 0
conn.inProgress = False
conn.resBuf = BytesBuffer(bytearray())


Loading…
Cancel
Save