Browse Source

changed to TCP with fixes

develop
yakamok 6 years ago committed by GitHub
parent
commit
a212fed4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      send-view.py

7
send-view.py

@ -11,8 +11,11 @@ def send_view_to_server(tosend):
attempts = 3 attempts = 3
while attempts: while attempts:
try: try:
conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
conn.sendto(tosend, (SERVER, 45671)) conn.connect((SERVER, 45671))
conn.send(tosend)
conn.close()
print "sent ok"
break break
except: except:
attempts -= 1 attempts -= 1

Loading…
Cancel
Save