GShellAutomator/QWAccountServer/code/account_server_test.py

16 lines
370 B
Python
Raw Normal View History

import socket
acc = ""
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect(("0.0.0.0", 12345))
s.send(b"givacc")
acc = s.recv(1024)
print(acc)
s.close()
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect(("0.0.0.0", 12345))
s.send(b"remacc|t788egrvdp@wwjmp.com")
print(s.recv(1024))
s.close()