bug fix

parent 18477030
......@@ -40,12 +40,13 @@ class test_client(object):
def connect(self):
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.connect((self.host, self.port))
receiver_thread = threading.Thread(target=self.receiver, args=(client,))
receiver_thread.start()
self.d = labcomm2014.Decoder(labcomm2014.StreamReader(server), self.version)
self.e = labcomm2014.Encoder(labcomm2014.StreamWriter(server), self.version)
receiver_thread = threading.Thread(target=self.receiver))
receiver_thread.start()
self.e.add_decl(commands.CMD_MOVE_LIN.signature)
self.e.add_decl(commands.CMD_MOVE_PTP.signature)
self.e.add_decl(commands.CMD_NO_OPERATION.signature)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment