following adjustment

This commit is contained in:
2019-12-15 11:34:39 +08:00
parent 87081c9149
commit dfd5369114
2 changed files with 18 additions and 0 deletions

15
test_file.py Normal file
View File

@@ -0,0 +1,15 @@
import socket
data = '''post log msw/1.0
from: network
hello, network!'''
data = data.encode()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 3900))
s.sendall(data)
print(data)
s.close()