remove flushes

This commit is contained in:
Maxime Bloch 2020-01-22 19:36:31 +01:00
parent 65c71b8ed0
commit fc6d0a7bb1
No known key found for this signature in database
GPG key ID: CE32A7D95B7D6418

View file

@ -1,13 +1,11 @@
import datetime import datetime
import socket import socket
import sys
from utils import mac_address, broadcast_address from utils import mac_address, broadcast_address
if __name__ == "__main__": if __name__ == "__main__":
print("Starting listener...") print("Starting listener...")
sys.stdout.flush()
connection = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohs(3)) connection = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohs(3))
@ -28,5 +26,3 @@ if __name__ == "__main__":
print("Congratulations, packet received correctly!") print("Congratulations, packet received correctly!")
else: else:
print("Wrong message, please check that you are sending \"ZeusWPI is de max!\"") print("Wrong message, please check that you are sending \"ZeusWPI is de max!\"")
sys.stdout.flush()