commclient/udp_socket_client.py

14 lines
198 B
Python
Raw Permalink Normal View History

2016-08-14 05:18:51 +00:00
#!/usr/bin/python2
import socket
import time
target = "192.168.178.21"
port = 5005
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while 1:
s.sendto("test", (target, port))
time.sleep(1)