From 254bac6b32219d0829f1b12af558650619422531 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 14 Jul 2014 14:15:38 -0400 Subject: [PATCH] minor change to 'addDataPadding' commit --- src/class_sendDataThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_sendDataThread.py b/src/class_sendDataThread.py index d7aec29f..f2bc5e20 100644 --- a/src/class_sendDataThread.py +++ b/src/class_sendDataThread.py @@ -151,7 +151,7 @@ class sendDataThread(threading.Thread): try: self.sock.sendall( - '\xE9\xBE\xB4\xD9\x70\x6F\x6E\x67' + addDataPadding('') + '\xcf\x83\xe1\x35') + '\xE9\xBE\xB4\xD9' + addDataPadding('pong') + '\x00\x00\x00\x00\xcf\x83\xe1\x35') # Magic bytes + pong command + zero data length + checksum self.lastTimeISentData = int(time.time()) except: print 'send pong failed'