17 lines
286 B
Python
17 lines
286 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import socket, sys, time
|
||
|
|
||
|
sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
|
||
|
sock.connect(('fdfd:cafe::1', 6969))
|
||
|
|
||
|
while True:
|
||
|
data = sys.stdin.buffer.read(64)
|
||
|
if not data:
|
||
|
break
|
||
|
|
||
|
sock.sendall(data)
|
||
|
time.sleep(0.869)
|
||
|
|
||
|
sock.close()
|