Created
May 6, 2019 07:36
-
-
Save outtoin/507b1e177ed9a93eddafa4d9820b85b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
import socket | |
import time | |
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
client_host = ('0.0.0.0', 0) | |
while True: | |
try: | |
client.sendto(b'1',client_host) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment