commclient/tcp_socket_client.py
2016-08-14 04:58:22 +00:00

15 lines
202 B
Python
Executable File

#!/usr/bin/python2
import socket
import time
target="192.168.178.21"
port=5005
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target,port))
while 1:
s.send("test")
time.sleep(1)