You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import socket
|
|
import sys
|
|
import time
|
|
|
|
|
|
while True:
|
|
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
client.connect(('localhost', 24000))
|
|
client.send('PING\n')
|
|
sys.stdout.write('client: RECV {}'.format(client.recv(100)))
|
|
time.sleep(0.5)
|