Skip to content

Instantly share code, notes, and snippets.

@outtoin
Created May 6, 2019 07:36
Show Gist options
  • Save outtoin/507b1e177ed9a93eddafa4d9820b85b2 to your computer and use it in GitHub Desktop.
Save outtoin/507b1e177ed9a93eddafa4d9820b85b2 to your computer and use it in GitHub Desktop.
#! /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