mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-05-22 16:09:52 +08:00
初步
This commit is contained in:
parent
58f2d5229a
commit
67e8e18237
11
VM/mainwindow.py
Normal file
11
VM/mainwindow.py
Normal file
@ -0,0 +1,11 @@
|
||||
import socket
|
||||
s = socket.socket()
|
||||
host = socket.gethostname()
|
||||
port = 8020
|
||||
s.bind((host, port))
|
||||
s.listen(5)
|
||||
while True:
|
||||
client, addr = s.accept()
|
||||
print(addr)
|
||||
client.send("A".encode("utf-8"))
|
||||
client.close()
|
Loading…
x
Reference in New Issue
Block a user